bionitio-team / bionitio

Demonstrating best practices for bioinformatics command line tools
MIT License
116 stars 26 forks source link

Python - setuptools #31

Open happykhan opened 8 years ago

happykhan commented 8 years ago

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

tseemann commented 8 years ago

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

bjpop commented 7 years ago

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 4 years ago

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