-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
63 lines (57 loc) · 1.65 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
from setuptools import setup, Extension
import sys
long_description = ''
if 'upload' in sys.argv:
with open('README.rst') as f:
long_description = f.read()
def extension(name):
return Extension(
'phorth.' + name,
['phorth/{name}.cc'.format(name=name)],
include_dirs=['phorth/include'],
language='c++',
extra_compile_args=[
'-Wall',
'-Wextra',
'-Wno-write-strings',
'-Wno-cast-function-type',
'-Wno-missing-field-initializers',
'-std=gnu++17',
],
)
setup(
name='phorth',
version='0.2.0',
description='A forth-like programming language that runs on the'
' CPython VM',
author='Joe Jevnik',
author_email='[email protected]',
packages=[
'phorth',
],
package_data={
'phorth': ['LICENSE'],
},
long_description=long_description,
license='GPL-2+',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Natural Language :: English',
'Operating System :: POSIX',
'Programming Language :: C++',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python',
'Topic :: Software Development :: Compilers',
'Topic :: Software Development :: Interpreters',
],
url='https://github.com/llllllllll/phorth',
ext_modules=[
extension('_primitives'),
extension('_runner'),
],
install_requires=[
'codetransformer>=0.4.4',
],
)