Skip to content

Add include/pythonX.Y to CPATH#14523

Merged
adamjstewart merged 1 commit intospack:developfrom
adamjstewart:packages/python-cpath
Jan 16, 2020
Merged

Add include/pythonX.Y to CPATH#14523
adamjstewart merged 1 commit intospack:developfrom
adamjstewart:packages/python-cpath

Conversation

@adamjstewart
Copy link
Copy Markdown
Member

Closes #14513

@mdorier

@property
def headers(self):
config_h = self.get_config_h_filename()
try:
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to be careful here, as Python may be installed during cross-compilation, but the Python executable can't be run to query for the header location. Use a try-except to handle this just like we did for self.home.

@adamjstewart adamjstewart merged commit 7a61d1d into spack:develop Jan 16, 2020
@adamjstewart adamjstewart deleted the packages/python-cpath branch January 16, 2020 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

headers of python packages not listed in CPATH

1 participant