Skip to content
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

Your package is py2.x and it installs on py3.x #17

Open
KamodaP opened this issue Dec 14, 2016 · 4 comments
Open

Your package is py2.x and it installs on py3.x #17

KamodaP opened this issue Dec 14, 2016 · 4 comments

Comments

@KamodaP
Copy link

KamodaP commented Dec 14, 2016

Your package has syntax of standard python 2.x version, but probably has a fault in pypi configuration, since it downloads on python3.x, installs, and fails ungraciously.

@jorgenkg
Copy link
Owner

Thank you for making me aware of this issue. If this is indeed something I can configure in the pypi config, I will take a look into it

@KamodaP
Copy link
Author

KamodaP commented Dec 15, 2016

https://packaging.python.org/distributing/#setup-args
Classifiers section. I believe that if you specify there python2 it should not allow accidentally installing on python3.
I’ve forked your project and prepared for compliance with python3, I will set up a pull request, but I’ve read that you wish to stay with python2, in that case please just leave pull request hanging, it will allow users to more easily find proper distribution. But if you want to have python3.x compliance I can help with setting up packages on pypi

@jorgenkg
Copy link
Owner

Unfortunately, that configuration have already been specified in the project's setup.py:

classifiers      = [
          'Programming Language :: Python :: 2.7',
          'Topic :: Scientific/Engineering :: Artificial Intelligence',
        ],

You are correct. I've decided to stick to Python 2.7 for now since the old version still rivals the performance of the new interpreter, and is the targeted python version of PYPY.

@KamodaP
Copy link
Author

KamodaP commented Dec 16, 2016

You can have both version simultaniously. Like you can download numpy for python2.x and for python3.x. I don't know what kind of configuration it would require, but I'm certain it works.
when you create the package you have something like pkg_name-any-any-win32.tgz?
I think that this name is miningfull, like when you look at pypi numpy they have separate files with the same naming convention. Like numpy-1.12.0b1-cp27-none-win_amd64.whl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants