bionitio-team/bionitio

Python - setuptools

happykhan opened this issue · 3 comments

Your setup in the python template probably wont work if the user doesnt have setuptools installed. which is actually common.

Something like this in setup.py would be good:

try:
    from setuptools import setup
except ImportError:
    from ez_setup import use_setuptools
    use_setuptools()

I have a copy of ez_setup here: https://github.com/BeatsonLab-MicrobialGenomics/samplemod/blob/master/ez_setup.py

@bjpop - this could be in the python README if it isn't already?

bjpop commented

I think it is about the use of pkg_resources, which seems to come from setuptools.

A little bit of reading suggests that more reading is required. Python packaging seems to be a bit of a mess.

ewels commented

For what it's worth, I don't think that I've ever had an issue related to this with MultiQC (which uses setuptools).