Python: Fix installation issues

This commit is contained in:
Vicki Pfau 2017-12-30 14:52:29 -05:00
parent faa688c21f
commit 212d4f5cf3
1 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,6 @@ import os
os.environ["BINDIR"] = "${CMAKE_BINARY_DIR}" os.environ["BINDIR"] = "${CMAKE_BINARY_DIR}"
os.environ["CPPFLAGS"] = " ".join([d for d in "${INCLUDE_FLAGS}".split(";") if d]) os.environ["CPPFLAGS"] = " ".join([d for d in "${INCLUDE_FLAGS}".split(";") if d])
os.chdir("${CMAKE_CURRENT_SOURCE_DIR}")
classifiers = [ classifiers = [
"Programming Language :: C", "Programming Language :: C",
@ -21,10 +20,13 @@ setup(name="${BINARY_NAME}",
author_email="jeffrey@endrift.com", author_email="jeffrey@endrift.com",
url="http://github.com/mgba-emu/mgba/", url="http://github.com/mgba-emu/mgba/",
packages=["mgba"], packages=["mgba"],
package_dir={
"mgba": "${CMAKE_CURRENT_SOURCE_DIR}"
},
setup_requires=['cffi>=1.6'], setup_requires=['cffi>=1.6'],
install_requires=['cffi>=1.6', 'cached-property'], install_requires=['cffi>=1.6', 'cached-property'],
extras_require={'pil': ['Pillow>=2.3']}, extras_require={'pil': ['Pillow>=2.3']},
cffi_modules=["_builder.py:ffi"], cffi_modules=["${CMAKE_CURRENT_SOURCE_DIR}/_builder.py:ffi"],
license="MPL 2.0", license="MPL 2.0",
classifiers=classifiers classifiers=classifiers
) )