Vitalik Buterin
11 years ago
2 changed files with 84 additions and 0 deletions
@ -0,0 +1,28 @@ |
|||
include CMakeLists.txt |
|||
include libevmface/*.cpp |
|||
include libevmface/*.h |
|||
include libevmface/CMakeLists.txt |
|||
include libethcore/*.cpp |
|||
include libethcore/*.h |
|||
include libethcore/CMakeLists.txt |
|||
include libethential/*.cpp |
|||
include libethential/*.h |
|||
include libethential/CMakeLists.txt |
|||
include liblll/*.cpp |
|||
include liblll/*.h |
|||
include liblll/CMakeLists.txt |
|||
include libserpent/*.cpp |
|||
include libserpent/*.h |
|||
include libserpent/CMakeLists.txt |
|||
include libpyserpent/*.cpp |
|||
include libpyserpent/*.h |
|||
include libpyserpent/CMakeLists.txt |
|||
include libpyserpent/*.cpp |
|||
include libpyserpent/CMakeLists.txt |
|||
include lllc/*.cpp |
|||
include lllc/CMakeLists.txt |
|||
include sc/*.cpp |
|||
include sc/CMakeLists.txt |
|||
|
|||
include README.md |
|||
include BuildInfo.sh |
@ -0,0 +1,56 @@ |
|||
#!/usr/bin/env python |
|||
|
|||
import os |
|||
import sys |
|||
from setuptools import setup |
|||
from setuptools.command.install import install |
|||
from distutils.command.build import build |
|||
from subprocess import call |
|||
|
|||
|
|||
class build_me(build): |
|||
def run(self): |
|||
build.run(self) |
|||
# if os.uname()[0] == 'Linux' and os.geteuid() == 0: |
|||
# call(['sudo', 'apt-get', 'install', 'cmake']) |
|||
# call(['sudo', 'apt-get', 'install', 'libboost-dev']) |
|||
call(['mkdir', 'build']) |
|||
os.chdir('build') |
|||
call(['cmake', '..', '-DLANGUAGES=1']) |
|||
call(['make']) |
|||
os.chdir('..') |
|||
|
|||
|
|||
class install_me(install): |
|||
def run(self): |
|||
install.run(self) |
|||
os.chdir('build') |
|||
call(['make', 'install']) |
|||
os.chdir('..') |
|||
|
|||
|
|||
class uninstall_me(): |
|||
def run(self): |
|||
sys.stderr.write("This is currently a dummy method. " |
|||
"Nothing has been uninstalled.") |
|||
|
|||
|
|||
def read(fname): |
|||
return open(os.path.join(os.path.dirname(__file__), fname)).read() |
|||
|
|||
|
|||
setup( |
|||
name='ethereum-serpent', |
|||
version='1.4.6', |
|||
description='Serpent compiler', |
|||
maintainer='Vitalik Buterin', |
|||
maintainer_email='v@buterin.com', |
|||
license='WTFPL', |
|||
url='http://www.ethereum.org/', |
|||
long_description=read('README.md'), |
|||
cmdclass={ |
|||
'build': build_me, |
|||
'install': install_me, |
|||
'uninstall': uninstall_me, |
|||
} |
|||
) |
Loading…
Reference in new issue