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