-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
executable file
·67 lines (58 loc) · 1.93 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import inspect
import os
import platform
from setuptools import Extension, setup
here = os.path.abspath(os.path.dirname(inspect.getsource(lambda: 0)))
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
cxx_flags = []
if platform.system() == 'Windows':
pass
else:
cxx_flags.extend([
'-std=c++11', '-Wall', '-fno-exceptions', '-fno-rtti',
'-O3',
# '-S', '-fverbose-asm', # TODO
])
z80_emulator_module = Extension(
name='z80._z80',
extra_compile_args=cxx_flags,
sources=['z80/_z80module.cpp'],
language='c++')
# TODO: Update the URL once we have a published documentation.
# TODO: Do we have a name for the emulator?
setup(name='z80',
version='1.0b3',
description='Fast and flexible Z80/i8080 emulator',
long_description=long_description,
long_description_content_type='text/markdown',
author='Ivan Kosarev',
author_email='[email protected]',
url='https://github.com/kosarev/z80',
license='MIT',
ext_modules=[z80_emulator_module],
packages=['z80'],
install_requires=[],
entry_points={
'console_scripts': [
'z80 = z80:main',
],
},
test_suite='tests.testsuite.suite',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: Education',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: C++',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: System :: Emulators',
],
)