Changeset 478
- Timestamp:
- 11/29/07 13:27:12 (1 year ago)
- Files:
-
- shedskin/branches/distutils/scripts (added)
- shedskin/branches/distutils/scripts/shedskin (added)
- shedskin/branches/distutils/setup.py (modified) (1 diff)
- shedskin/branches/distutils/shedskin (added)
- shedskin/branches/distutils/shedskin/FLAGS (moved) (moved from shedskin/branches/distutils/FLAGS)
- shedskin/branches/distutils/shedskin/__init__.py (moved) (moved from shedskin/branches/distutils/ss.py) (2 diffs)
- shedskin/branches/distutils/shedskin/lib (moved) (moved from shedskin/branches/distutils/lib)
- shedskin/branches/distutils/unit.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
shedskin/branches/distutils/setup.py
r477 r478 1 #!/usr/bin/env python 2 import sys, os 1 from distutils.core import setup 3 2 4 # create compiler startup script5 3 6 if sys.platform != 'win32': 7 ss = file('ss','w') 8 ss.write('#\!/bin/sh\n') 9 ss.write('export SHEDSKIN_ROOT="%s"\n' % os.getcwd()) 10 ss.write('%s "$SHEDSKIN_ROOT/ss.py" $*\n' % sys.executable) 11 ss.close() 12 13 os.system('chmod a+wrx ss') 14 4 setup(name='shedskin', 5 url='http://shed-skin.blogspot.com/', 6 author='Mark Dufour', 7 author_email='mark.dufour@gmail.com', 8 version='0.25', 9 description='An Optimizing Python-to-C++ Compiler', 10 long_description=\ 11 'Shed Skin is an experimental Python-to-C++ compiler, than can ' \ 12 'translate pure, but implicitly statically typed Python programs ' \ 13 'into optimized C++.', 14 license='GPL3', 15 scripts=['scripts/shedskin'], 16 packages=['shedskin'], 17 package_data={'shedskin': ['lib/*.*', 'lib/os/*.*']}, 18 ) shedskin/branches/distutils/shedskin/__init__.py
r477 r478 8 8 from compiler.ast import * 9 9 from compiler.visitor import * 10 11 import shedskin 10 12 11 13 import sys, string, copy, getopt, os.path, textwrap, traceback … … 557 559 self.alloc_info = {} # allocation site type information across iterations 558 560 self.iterations = 0 559 self.sysdir = os.environ.get('SHEDSKIN_ROOT', '.').replace('\\','/') 561 shedskin_lib = os.path.dirname(shedskin.__file__) 562 self.sysdir = os.environ.get('SHEDSKIN_ROOT', shedskin_lib).replace('\\','/') 560 563 self.libdir = connect_paths(self.sysdir, 'lib') 561 564 self.main_mod = 'test'
