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
[REQUEST] Use python sysconfig to generate CFLAGs #5471
Labels
enhancement
New feature or request
Comments
FWIW, this appears to be recently introduced -
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
In conda/venv, DeepSpeed fails to build
pt_binding.o
as it thinksPython.h
is missing. Looking at the c++ command it's trying to use, it's not including the correct paths (/usr/include/python3.11, ~/venv/python3.11/include, etc.)Describe the solution you'd like
Using
sysconfig
we can generate this, similar to whatpython-config.py
does. Something likeDescribe alternatives you've considered
Looking at
builder.py
we should be able to override this with the CFLAGS, but this isn't always an option (and is an extra hoop we don't need if we let python tell us what paths to include)Additional context
N/A
The text was updated successfully, but these errors were encountered: