-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building 0.4.x on Python 3 breaks for Python 2 and vice versa #1797
Comments
From the docs:
https://packaging.python.org/tutorials/distributing-packages/#pure-python-wheels
I'd rather eliminate the problem that causes the dist to only work on Py3. |
Confirming that creating the dist in a Python 2 env, works for another Python 2 env, but fails in Python 3! |
Building 0.4.3 with Python 2 once again, I can confirm that the problem persists. The pex file will because of an option given to the Pex builder in The problem seems to be unnecessary though:
(example is from We could have a package called |
This all boils down to I suggest we fix it my ridding |
I think this needs doing for 0.4: We release two separate builds manually on PyPi. I'll do that. For 0.5, I could try fixing django-q in our own build and send a PR upstream. This is very vital to have fixed, I predict a lot of fuzz about not know whether something was built for Py2 or Py3, since this is not part of our labelling of builds. |
This is intentional for all builds not containing barbequeue. |
Might be better to just release two version of kolibri for 4.x on PyPI, if we are planning to do that. |
Fixed in #1810 |
Summary
This happens already in 0.4.2 (and probably also previous editions)
When built with Python 3, the dist only works for Python 3 (and fails on Python 2.7). I haven't tested the converse.
I'm pretty sure this affects Pex files as well since they're built from .whl files. We already have an issue similar to this in #1710 - namely that Pex is broken on Python 3 environments with namespaced packages. This narrows the window regarding how many (few!) Python environments that the Pex builds will work with.
Traceback or relevant snippet from server.log or browser console
Failure in Py2 when built on Py3:
Failure in Py3 when built on Py2:
How to reproduce
make dist
from a Python 3 env (meaning thatpython
command points to Python 3)The text was updated successfully, but these errors were encountered: