[Distutils] python_version>="2.7" environment marker difficulties

Ionel Cristian Mărieș contact at ionelmc.ro
Mon Mar 21 09:26:21 EDT 2016


I think most users will understand
<https://github.com/ionelmc/pytest-benchmark/issues/42> that they need to
upgrade their pip/setuptools. If they complain about Ubuntu not shipping
recent tooling or whatever then just send them to the Ubuntu bug tracker
:-)

Regarding your issue, since you don't depend on minor python version you
could easily publish one wheel for py2 and one for py3. This won't need env
markers and will avoid wheel poisoning issues, in most cases at least. But
this complicates the release process - is it worth it?


Thanks,
-- Ionel Cristian Mărieș, http://blog.ionelmc.ro

On Mon, Mar 21, 2016 at 1:40 PM, Michael R. Crusoe <crusoe at ucdavis.edu>
wrote:

> Hello,
>
> To support a dependency[0] which has a different name for its Py2 & Py3
> versions, our program schema_salad uses the "python_version" environment
> marker.
>
> This seems to not be supported when users have older setuptools
> installed[1]
>
> With setuptools before version 17.1 one gets
>
> error in schema-salad setup command: Invalid environment marker:
> python_version>="2.7"
>
> I tried to bundle a newer version with ez_setup.py but that isn't working
> either:
> https://github.com/common-workflow-language/schema_salad/commit/04a956dbef40b32ef9c486ddab4dcff544dc2c65#commitcomment-16745845
>
> "ez_setup() bootstraps transparently if you're using python setup.py
> install but not for pip install of the same package (where it complains
> that you need to upgrade setuptools first)"
>
> Code is at
> https://github.com/common-workflow-language/schema_salad/blob/envmarker-test/setup.py#L45
>
> Is there a better way to deal with the divergent names for our dependency?
>
> Thanks in advance,
>
> [0] https://pypi.python.org/pypi/avro vs
> https://pypi.python.org/pypi/avro-python3
> [1]
> https://github.com/common-workflow-language/schema_salad/issues/17#issue-141147041
>
> --
> Michael R. Crusoe     CWL Community Engineer     crusoe at ucdavis.edu
> Common Workflow Language project    University of California, Davis
> https://impactstory.org/MichaelRCrusoe http://twitter.com/biocrusoe
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20160321/a946be73/attachment-0001.html>


More information about the Distutils-SIG mailing list