aboutsummaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/setup.py
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-02-16 21:28:33 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-02-16 21:28:33 +0800
commit702218008ee2b6d708d6b2821cdef80736bb3224 (patch)
treed55ff7ce88187082378e7d8e4c2f3aad14d23b4e /Godeps/_workspace/src/github.com/ethereum/serpent-go/serpent/setup.py
parent202362d9258335c695eb75f55f4be74a50a1af33 (diff)
downloadgo-tangerine-702218008ee2b6d708d6b2821cdef80736bb3224.tar.gz
go-tangerine-702218008ee2b6d708d6b2821cdef80736bb3224.tar.zst
go-tangerine-702218008ee2b6d708d6b2821cdef80736bb3224.zip
Add versioned dependencies from godep
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.py46
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',
+ ],
+ }
+ ),