Python: Improve setup.py generation
Vicki Pfau vi@endrift.com
Sun, 11 Jun 2017 14:42:26 -0700
1 files changed,
5 insertions(+),
0 deletions(-)
jump to
M
src/platform/python/setup.py.in
→
src/platform/python/setup.py.in
@@ -1,5 +1,10 @@
from setuptools import setup import re +import os + +os.environ["BINDIR"] = "${CMAKE_BINARY_DIR}" +os.environ["CPPFLAGS"] = " ".join([d for d in "${INCLUDE_FLAGS}".split(";") if d]) +os.chdir("${CMAKE_CURRENT_SOURCE_DIR}") classifiers = [ "Programming Language :: C",