all repos — mgba @ 369bcc95117fb4ae2aad40fc78fa91d71637ccd3

mGBA Game Boy Advance Emulator

src/platform/python/setup.py.in (view raw)

 1from setuptools import setup
 2import re
 3import os
 4
 5os.environ["BINDIR"] = "${CMAKE_BINARY_DIR}"
 6os.environ["CPPFLAGS"] = " ".join([d for d in "${INCLUDE_FLAGS}".split(";") if d])
 7
 8classifiers = [
 9    "Programming Language :: C",
10    "Programming Language :: Python :: 2",
11    "Programming Language :: Python :: 3",
12    "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
13    "Topic :: Games/Entertainment",
14    "Topic :: System :: Emulators"
15]
16
17setup(name="${BINARY_NAME}",
18      version=re.sub("/", "-", "${VERSION_STRING}"),
19      author="Jeffrey Pfau",
20      author_email="jeffrey@endrift.com",
21      url="http://github.com/mgba-emu/mgba/",
22      packages=["mgba"],
23      package_dir={
24        "mgba": "${CMAKE_CURRENT_SOURCE_DIR}/mgba"
25      },
26      setup_requires=['cffi>=1.6'],
27      install_requires=['cffi>=1.6', 'cached-property'],
28      extras_require={'pil': ['Pillow>=2.3']},
29      cffi_modules=["${CMAKE_CURRENT_SOURCE_DIR}/_builder.py:ffi"],
30      license="MPL 2.0",
31      classifiers=classifiers
32      )