-
Notifications
You must be signed in to change notification settings - Fork 59
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
delocate-wheel and non-fixed brew dependency #12
Comments
Does the wheel in fact contain the library? I seem to remember that delocate does not by default print out the libraries it copied, perhaps I should change that line in multibuild to avoid the confusion. |
no, pardon the confusion, the fixed wheel doesn't contain the library so something is going wrong when I do |
Pardon me for not reading your message with enough attention. I'll have a look later on today. |
Ah - yes - I see. The wheel processor specifically looks in the subdirectories within the wheel, and not in the compiled modules at the top level. The reason is that it wants to create a new subdirectory, called |
Alright, thanks that makes sense, will try to adjust on our end |
Ok, I converted swiglpk into a package instead of a top level module (which was not straightforward at all since it uses swig) but now I get this when I run
Why would delocate try to inspeact a It works fine otherwise (so the package structure is ok I hope). https://github.com/biosustain/swiglpk/tree/new_appveyor_config is what I used to create the wheel (using |
Puzzling - I just cloned your repo, built a wheel and ran delocate on it:
I think you've run into problems with delocate and the latest OSX. Try the current github master version of delocate - does that fix it? |
I just uploaded a new release of delocate with the OSX 10.12 fixes - can you test? |
Indeed, I was already wondering why this was not causing any troubles on travis-ci. The new release fixed also the issue on macOS Sierra. Also it looks like making the swiglpk a package fixed the original we had. Thanks for your help 👍 you can close this issue if you like. |
Great - thanks for the quick feedback. |
MRG: Document limitation with top-level Py module structure As discussed in Issue #12, Issue #15, and elsewhere delocate-wheel may ignore compiled extensions at the top level of a wheel that are not part of a Python package. This documents that limitation and shows how the package structure can be adjuste to fix it.
I am trying to use multibuild (great project btw, thanks a lot for this one) to make wheels for swiglpk but have difficulty to fix the library dependencies for the mac wheels. A reproducible example for is
$ git clone https://github.com/biosustain/swiglpk $ brew install glpk $ cd swiglpk/ $ python setup.py bdist_wheel $ delocate-listdeps dist/swiglpk-1.2.22+4.g954dc63-cp35-cp35m-macosx_10_6_intel.whl /usr/local/Cellar/glpk/4.60/lib/libglpk.40.dylib $ delocate-wheel -v -w fixed-wheel dist/swiglpk-1.2.22+4.g954dc63-cp35-cp35m-macosx_10_6_intel $ delocate-listdeps fixed-wheel/swiglpk-1.2.22+4.g954dc63-cp35-cp35m-macosx_10_6_intel.whl /usr/local/Cellar/glpk/4.60/lib/libglpk.40.dylib
With the last call to
delocate-listdeps
I expected no output indicating thatdelocate-wheel
had copied the dependency to the wheel. Am I missing something or is this a bug somehow?The text was updated successfully, but these errors were encountered: