-
Notifications
You must be signed in to change notification settings - Fork 1
Allow hook for setting library #1
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
base: master
Are you sure you want to change the base?
Conversation
Sorry it's taken me so long to get to this! |
python_configure.bzl
Outdated
|
||
python_inc_dir = sysconfig.get_python_inc() | ||
config_h_path = sysconfig.get_config_h_filename() | ||
shutil.copyfile(config_h_path, python_inc_dir + "/pyconfig.h") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we somehow avoid this side effect? Wouldn't it fail when using a systemwide installation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. Yeah I don't remember why I made this change- I imagine I did it for some reason. Without the correct permissions this would crash.
We could check to see whether this is needed or possible- but I think it would be better to just remove this.
Not sure. I can test this at some point, but likely not until next week.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was it from the patch here? pybind#29 (comment)
I think it might be better to just have the genrule copy it.
There's no hurry anyway :)
* Remove 'local' tag from pybind_extension See pybind#34 for more details. Remote cache in CI works as a charm.
Some clean up changes too (hopefully not to paternalistic).
Edit: note whitespace changes are from buildifier