Python: Improve setup.py generation

This commit is contained in:
Vicki Pfau 2017-06-11 14:42:26 -07:00
parent 04ebc6a06e
commit 1dcf70d6d3
1 changed files with 5 additions and 0 deletions

View File

@ -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",