Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

backport SOABI to Python 2 #63

Closed
agronholm opened this issue Mar 8, 2013 · 3 comments
Closed

backport SOABI to Python 2 #63

agronholm opened this issue Mar 8, 2013 · 3 comments

Comments

@agronholm
Copy link
Contributor

Originally reported by: Daniel Holth (Bitbucket: dholth, GitHub: dholth)


It would be nice to detect py27[d|m|u] as in Python 3.


@agronholm
Copy link
Contributor Author

Original comment by Éric Araujo (Bitbucket: Merwok, GitHub: Merwok):


See also #101.

@agronholm
Copy link
Contributor Author

Original comment by Nick Coghlan (Bitbucket: ncoghlan, GitHub: ncoghlan):


This came up recently on distutils-sig. Proposed algorithm (adjusted to use the abbreviated "cp" prefix rather than the full "cpython-"):

  • the start of the SOABI tag should be "cp"
  • the next two digits will be the major/minor of the release (i.e. 26 or 27)
  • the next character will be 'd' if sys.pydebug is set (I'm fairly
    sure, but double check this)
  • we can assume 'm' (for using pymalloc) safely enough
  • the final character will be 'u' if sys.maxunicode == 0x10ffff

Locations which need updating to use this fallback with SOABI is not defined:

https://bitbucket.org/pypa/wheel/src/bdf053a70200c5857c250c2044a2d91da23db4a9/wheel/bdist_wheel.py?at=default#cl-150
https://bitbucket.org/pypa/wheel/src/bdf053a70200c5857c250c2044a2d91da23db4a9/wheel/pep425tags.py?at=default#cl-65

@agronholm
Copy link
Contributor Author

Original comment by Nate Coraor (Bitbucket: natefoo, GitHub: natefoo):


This is now done as of pull request #55 and will be in wheel 0.27.0. The algorithm changed somewhat over time and will still need a bit more work for Windows as discussed in pip issue #3383.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant