Skip to content

How to copy builded c++ deps to temp dir created by cibuildwheel? #645

Answered by Czaki
MarshalX asked this question in Q&A
Discussion options

You must be logged in to vote

I strongly suggest to move setup.py one level up or use the environment variable inside setup.py to identify the path to external library.

You could use in setup.py construction like os.environ.get("MY_LIBRARY_BASE_PATH", "..")

Did your code build locally with pip wheel command? I think not. If I good remember your fix works only because of the flat structure of tmp directories created by the command pip wheel.

If you use environment variables in setup.py then package placeholder should be enough.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@MarshalX
Comment options

Answer selected by MarshalX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants