Skip to content

Commit 5d4cf4a

Browse files
committed
- allow to overwrite python include dir
1 parent 9ca4344 commit 5d4cf4a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
from setuptools.command.build_ext import build_ext
3838

3939
def get_python_include():
40+
temp = os.getenv('PYTHON_INCLUDE_DIR')
41+
if temp:
42+
return temp
43+
4044
path = sysconfig.get_paths()['include']
4145
if exists(path):
4246
return path

0 commit comments

Comments
 (0)