Skip to content

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

dmadisetti
Copy link

@dmadisetti dmadisetti commented Apr 5, 2021

Some clean up changes too (hopefully not to paternalistic).

Edit: note whitespace changes are from buildifier

@quval
Copy link
Owner

quval commented May 6, 2021

Sorry it's taken me so long to get to this!


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")
Copy link
Owner

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?

Copy link
Author

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.

Copy link
Owner

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 :)

quval and others added 2 commits September 17, 2021 14:40
* Remove 'local' tag from pybind_extension

See pybind#34 for more details. Remote cache in CI works as a charm.
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

Successfully merging this pull request may close these issues.

3 participants