all repos — mgba @ 1dcf70d6d3eb2d08651c73c55613f5524158f395

mGBA Game Boy Advance Emulator

Python: Improve setup.py generation
Vicki Pfau vi@endrift.com
Sun, 11 Jun 2017 14:42:26 -0700
commit

1dcf70d6d3eb2d08651c73c55613f5524158f395

parent

04ebc6a06e654f5205b5df3f69c08cc9e93d4784

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M src/platform/python/setup.py.insrc/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",