Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Is it possible to pip install this package without compiling C-extension? #42

Closed
rogalski opened this issue Apr 12, 2018 · 4 comments
Closed

Comments

@rogalski
Copy link

No description provided.

@gpshead
Copy link
Contributor

gpshead commented Apr 12, 2018

I'll be providing a binary wheel for macOS users when I push the next release.

But on Linux, no, the only binary option for Linux possible pip and PyPI (manylinux1 and the coming manylinux2) require building against a platform which does not have modern enough APIs for the extension module to be reliable - defeating half the purpose of the module. Compilation will still be required there.

See issue #14

@gpshead gpshead closed this as completed Apr 12, 2018
@guettli
Copy link

guettli commented Jun 22, 2018

I don't understand this. If you are not able to do build a wheel, then I think I am not able to build a wheel, too.

I did python setup.py bdist_wheel and uploaded this to our local pypi server.

Thinks seem to work this way.

@gpshead
Copy link
Contributor

gpshead commented Jun 22, 2018

You always can build a wheel. But you can't make one for subprocess32 that will work on all Linux machines in the world and use appropriate modern system call APIs to guarantee it is reliable.

That bdist_wheel that you did built a wheel that will work on Linux systems compatible with the one you built it on. If that's what you need, great for you.

But I can't do that for the global PyPI using manylinux1 or manylinux2 build processes as it would cause everyone to install a less functional module by default. Building from source on a system equivalent to what you'll be deploying it on (as you did) is always better.

@guettli
Copy link

guettli commented Jun 26, 2018

Thank you for your feedback. I hope I can switch to Python3 in the next year :-)

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

No branches or pull requests

3 participants