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

Non-standard libs can't be bundled in macOS #2

Closed
natefoo opened this issue Sep 11, 2018 · 5 comments
Closed

Non-standard libs can't be bundled in macOS #2

natefoo opened this issue Sep 11, 2018 · 5 comments

Comments

@natefoo
Copy link

natefoo commented Sep 11, 2018

Continuing the conversation from unbit/uwsgi#816

@natefoo wrote:

It's not possible to bundle nonstandard libs into the macOS wheel currently (libyaml, libpcre, ...) due to a limitation in delocate described in matthew-brett/delocate#12 (comment) unless the pyuwsgi shared lib is placed inside a dummy package. It may make more sense to fix delocate rather than pyuwsgi, however.

Fundamentally this is a delocate limitation (it works with auditwheel) and maybe @matthew-brett has some ideas on how feasible implementing support for it would be. I'm motivated to contribute time, if that helps. 😄

Alternatively, we can put pyuwsgi into an actual package namespace, I've tried this out in my pyuwsgi-package branch and it works (at least enough to execute) for Python 3 but breaks C extension module initialization for Python 2.7. But I've only put about 15 minutes into this, so that's presumably fixable.

@matthew-brett
Copy link

Yes, it should be easy-ish - if you'd like to help, I'm sure we can get it done in a day or so.

@natefoo
Copy link
Author

natefoo commented Sep 11, 2018

Great, thanks for responding! I'll have a look, then.

@natefoo
Copy link
Author

natefoo commented Sep 14, 2018

Just for future reference, work on it is here: matthew-brett/delocate#39

@ipmb
Copy link
Member

ipmb commented Sep 26, 2018

Hoping this gets resolved upstream soon, but in the meantime, you probably want to build the MacOS pyuwsgi wheels locally (unless you have all the necessary libraries installed) via:

pip install --no-binary=pyuwsgi pyuwsgi

@ipmb
Copy link
Member

ipmb commented Oct 12, 2018

I setup @natefoo's fork in de3635c and released it on PyPI as 2.0.17.2b4.

@ipmb ipmb closed this as completed Oct 12, 2018
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

3 participants