diff options
author | Bruce Smith <bruce@nanorex.com> | 2008-04-04 04:23:12 +0000 |
---|---|---|
committer | Bruce Smith <bruce@nanorex.com> | 2008-04-04 04:23:12 +0000 |
commit | 06b5e0d4cea23a0ba7231c0dd404b7a6c2dfd58a (patch) | |
tree | efee377aed63ccfbaf04ba23661075c0151efe89 /cad/src/outtakes | |
parent | b5177385e894a6b933774d95ac07e87bb4e85063 (diff) | |
download | nanoengineer-theirix-06b5e0d4cea23a0ba7231c0dd404b7a6c2dfd58a.tar.gz nanoengineer-theirix-06b5e0d4cea23a0ba7231c0dd404b7a6c2dfd58a.zip |
move setup2.py (old way of building samevals.c) to outtakes
Diffstat (limited to 'cad/src/outtakes')
-rwxr-xr-x | cad/src/outtakes/setup2.py | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/cad/src/outtakes/setup2.py b/cad/src/outtakes/setup2.py new file mode 100755 index 000000000..d906b18db --- /dev/null +++ b/cad/src/outtakes/setup2.py @@ -0,0 +1,33 @@ +# Copyright 2005-2007 Nanorex, Inc. See LICENSE file for details. +__author__ = 'Will' + +import sys + +from distutils.core import setup +from distutils.extension import Extension + +if (__name__ == '__main__'): + + try: + from Pyrex.Distutils import build_ext + except: + print "Problem importing Pyrex. You need to install Pyrex before it makes sense to run this." + print "For more info see cad/src/README-Pyrex and/or " + print " http://www.nanoengineer-1.net/mediawiki/index.php?title=Integrating_Pyrex_into_the_Build_System" + print "(If you already installed Pyrex, there's a bug in your Pyrex installation or in setup.py, " + print " since the import should have worked.)" + sys.exit(1) + + # Hack to prevent -O2/-O3 problems on the Mac + #if sys.platform == "darwin": + # extra_compile_args = [ "-DDISTUTILS", "-O" ] + + # Maybe put in some "-O" stuff later + extra_compile_args = [ "-DDISTUTILS", "-Wall", "-g" ] + + setup(name = 'Simulator', + ext_modules=[Extension("samevals", ["samevals.c"], + extra_compile_args = extra_compile_args + ), + ], + cmdclass = {'build_ext': build_ext}) |