Changeset 15

Show
Ignore:
Timestamp:
04/14/06 11:17:59 (3 years ago)
Author:
astraw
Message:

removed scons requirement

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/pyosg/modules.py

    r3 r15  
    2323    ext_modules.append('osgSound') 
    2424 
    25 py_modules = [ 
    26     'PyOSG' 
    27 ] 
    28  
    2925node_kits = [ 
    3026    'osgScript', 
  • trunk/pyosg/setup.py

    r5 r15  
    1717import os, shutil, sys 
    1818from distutils.core import setup, Extension 
    19 from distutils.command.build import build 
    20 from distutils.command.clean import clean 
    21 from distutils.command.install import install 
    22 from distutils.file_util import copy_file 
    2319from versions_default import * 
    2420from glob import glob 
    2521from os.path import isfile 
    26  
    27 try: 
    28   import py2app 
    29   import bdist_mpkg 
    30 except: 
    31   pass 
    3222 
    3323import modules 
     
    3929# XXX remove me when checking in 
    4030# 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=" + destination 
    47         if sys.platform != "win32": command += " -j 2" 
    48  
    49         if os.system(command): 
    50             print "Could not build shared PyOSG library! Executed : ", command 
    51             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) 
    6531 
    6632try: 
     
    13298      download_url = "http://pyosg.sourceforge.net", 
    13399      url = "http://pyosg.sourceforge.net", 
    134       cmdclass = {'build'   : pyosg_build, 
    135                   'clean'   : pyosg_clean, 
    136                   'install' : pyosg_install}, 
    137100      ext_modules = extensions, 
    138       py_modules  = modules.py_modules, 
    139101      data_files = data_files, 
    140102      package_data = package_data,