diff options
| author | serpilliere <devnull@localhost> | 2014-06-03 10:18:48 +0200 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2014-06-03 10:18:48 +0200 |
| commit | a183e1ebd525453710306695daa8c410fd0cb2af (patch) | |
| tree | cd99281474ea3999ccc6e5399c2cb95349981cfb /setup.py | |
| parent | cecdf0da2ed0221c203af9157add30e2bff7dd8c (diff) | |
| download | miasm-a183e1ebd525453710306695daa8c410fd0cb2af.tar.gz miasm-a183e1ebd525453710306695daa8c410fd0cb2af.zip | |
Send miasm v1 to hell
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/setup.py b/setup.py deleted file mode 100755 index 03adc925..00000000 --- a/setup.py +++ /dev/null @@ -1,62 +0,0 @@ -#! /usr/bin/env python - -from distutils.core import setup,Extension - -def buil_all(): - setup( - name = 'Miasm', - version = '0.1', - packages=['miasm', 'miasm/tools', - 'miasm/expression', 'miasm/graph', 'miasm/arch', - 'miasm/core', 'miasm/tools/emul_lib' ], - package_data = {'miasm':['tools/emul_lib/*.h']}, - # data_files = [('toto', ['miasm/tools/emul_lib/queue.h'])], - ext_modules = [ - Extension("miasm.tools.emul_lib.libcodenat_interface", - ["miasm/tools/emul_lib/libcodenat_interface.c", - "miasm/tools/emul_lib/libcodenat.c"]), - Extension("miasm.tools.emul_lib.libcodenat_tcc", - ["miasm/tools/emul_lib/libcodenat_tcc.c"], - libraries=["tcc"]) - ], - # Metadata - author = 'Fabrice Desclaux', - author_email = 'serpilliere@droid-corp.org', - description = 'Machine code manipulation library', - license = 'GPLv2', - # keywords = '', - # url = '', - ) - - - -def buil_no_tcc(): - setup( - name = 'Miasm', - version = '0.1', - packages=['miasm', 'miasm/tools', - 'miasm/expression', 'miasm/graph', 'miasm/arch', - 'miasm/core', 'miasm/tools/emul_lib' ], - package_data = {'miasm':['tools/emul_lib/*.h']}, - # data_files = [('toto', ['miasm/tools/emul_lib/queue.h'])], - # Metadata - author = 'Fabrice Desclaux', - author_email = 'serpilliere@droid-corp.org', - description = 'Machine code manipulation library', - license = 'GPLv2', - # keywords = '', - # url = '', - ) - - -def try_build(): - try: - buil_all() - return - except: - print "WARNING cannot build with libtcc!, trying without it" - print "Miasm will not be able to emulate code" - buil_no_tcc() - - -try_build() |