diff options
Diffstat (limited to 'Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/setup.py')
-rw-r--r-- | Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/setup.py | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/setup.py b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/setup.py new file mode 100644 index 000000000..5fdc1c16a --- /dev/null +++ b/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/setup.py @@ -0,0 +1,46 @@ +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='1.7.7', + + description='Serpent compiler', + maintainer='Vitalik Buterin', + maintainer_email='v@buterin.com', + 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 + ['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'] + )], + py_modules=[ + 'serpent', + 'pyserpent' + ], + scripts=[ + 'serpent.py' + ], + entry_points={ + 'console_scripts': [ + 'serpent = serpent:main', + ], + } + ), |