Skip to content

Commit

Permalink
- allow to overwrite python include dir
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Apr 15, 2024
1 parent 9ca4344 commit 5d4cf4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
from setuptools.command.build_ext import build_ext

def get_python_include():
temp = os.getenv('PYTHON_INCLUDE_DIR')
if temp:
return temp

path = sysconfig.get_paths()['include']
if exists(path):
return path
Expand Down

0 comments on commit 5d4cf4a

Please sign in to comment.