Changeset 15
- Timestamp:
- 04/14/06 11:17:59 (3 years ago)
- Files:
-
- trunk/pyosg/SConstruct (deleted)
- trunk/pyosg/modules.py (modified) (1 diff)
- trunk/pyosg/osgSim/.sconsign (deleted)
- trunk/pyosg/osgTerrain/.sconsign (deleted)
- trunk/pyosg/osgText/.sconsign (deleted)
- trunk/pyosg/scons (deleted)
- trunk/pyosg/setup.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pyosg/modules.py
r3 r15 23 23 ext_modules.append('osgSound') 24 24 25 py_modules = [26 'PyOSG'27 ]28 29 25 node_kits = [ 30 26 'osgScript', trunk/pyosg/setup.py
r5 r15 17 17 import os, shutil, sys 18 18 from distutils.core import setup, Extension 19 from distutils.command.build import build20 from distutils.command.clean import clean21 from distutils.command.install import install22 from distutils.file_util import copy_file23 19 from versions_default import * 24 20 from glob import glob 25 21 from os.path import isfile 26 27 try:28 import py2app29 import bdist_mpkg30 except:31 pass32 22 33 23 import modules … … 39 29 # XXX remove me when checking in 40 30 # open('buildno.h', 'wa').write("#define BUILDNO %d\n" % buildno) 41 42 class pyosg_build(build):43 def run(self):44 destination = os.path.join(self.build_platlib, 'PyOSG')45 46 command = sys.executable + " scons" + os.sep + "scons.py install=" + destination47 if sys.platform != "win32": command += " -j 2"48 49 if os.system(command):50 print "Could not build shared PyOSG library! Executed : ", command51 sys.exit(1)52 53 class pyosg_clean(clean):54 def run(self):55 clean.run(self)56 destination = os.path.join(self.build_lib, 'PyOSG')57 58 if os.system(sys.executable + " scons" + os.sep + "scons.py -c install=" + destination):59 print "Could not clean PyOSG library!"60 sys.exit(1)61 62 class pyosg_install(install):63 def run(self):64 install.run(self)65 31 66 32 try: … … 132 98 download_url = "http://pyosg.sourceforge.net", 133 99 url = "http://pyosg.sourceforge.net", 134 cmdclass = {'build' : pyosg_build,135 'clean' : pyosg_clean,136 'install' : pyosg_install},137 100 ext_modules = extensions, 138 py_modules = modules.py_modules,139 101 data_files = data_files, 140 102 package_data = package_data,
