Skip to content
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

Scikit-build allow build isolation #68

Closed
wants to merge 3 commits into from

Conversation

minrk
Copy link
Collaborator

@minrk minrk commented Jun 5, 2023

experiment on #67 where --no-build-isolation is no longer required.

The parent sys.executable is located by inspecting the $_ environment variable, which seems pretty sketchy. I don't think it's a good idea, but this or something similar may be worth exploring?

Note that everything 'normal' (e.g. pybind11) still uses the isolated build environment. But the two calls to get paths out of Python imports use the parent Python instead of the isolated env.

Very much a 'works for me' experiment and illustration that should probably be closed. I'm mainly curious to see if it works on CI.

minrk added 3 commits June 5, 2023 14:00
- remove setup.py
- requires `--no-build-isolation` to pip install (previously added by default due to lack of pyproject.toml)
@jorgensd
Copy link
Owner

As DOLFINx has adopted --no-build-isolation, I suggest we do the same. WIP in: #91

@minrk minrk closed this Apr 27, 2024
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.

2 participants