forked from ethereum/serpent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (41 loc) · 1.28 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
from setuptools import setup, Extension
import os
from distutils.sysconfig import get_config_vars
(opt,) = get_config_vars('OPT')
os.environ['OPT'] = " ".join(
flag for flag in opt.split() if flag != '-Wstrict-prototypes'
)
setup(
# Name of this package
name="ethereum-serpent",
# Package version
version='2.0.2',
description='Serpent compiler',
maintainer='Vitalik Buterin',
maintainer_email='[email protected]',
license='WTFPL',
url='http://www.ethereum.org/',
# Describes how to build the actual extension module from C source files.
ext_modules=[
Extension(
'serpent_pyext', # Python name of the module
sources=['keccak-tiny.cpp', 'bignum.cpp', 'util.cpp',
'tokenize.cpp', 'lllparser.cpp', 'parser.cpp',
'functions.cpp', 'optimize.cpp', 'opcodes.cpp',
'rewriteutils.cpp', 'preprocess.cpp', 'rewriter.cpp',
'compiler.cpp', 'funcs.cpp', 'pyserpent.cpp'],
extra_compile_args=['-Wno-sign-compare']
)],
py_modules=[
'serpent',
'pyserpent'
],
scripts=[
'serpent.py'
],
entry_points={
'console_scripts': [
'serpent = serpent:main',
],
}
),