|
From: <mk...@us...> - 2003-03-20 18:53:45
|
Update of /cvsroot/csp/APPLICATIONS/SimData
In directory sc8-pr-cvs1:/tmp/cvs-serv22894
Modified Files:
setup.py
Log Message:
Index: setup.py
===================================================================
RCS file: /cvsroot/csp/APPLICATIONS/SimData/setup.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** setup.py 20 Mar 2003 17:53:39 -0000 1.3
--- setup.py 20 Mar 2003 18:53:37 -0000 1.4
***************
*** 50,56 ****
dst_name = os.path.join(dst, n)
if not os.path.isdir(src_name):
copy_file(src_name, dst_name)
! def make_install():
from distutils import sysconfig, dir_util
lib = sysconfig.get_python_lib()
--- 50,57 ----
dst_name = os.path.join(dst, n)
if not os.path.isdir(src_name):
+ print "%s => %s" % (src_name, dst_name)
copy_file(src_name, dst_name)
! def make_install(win):
from distutils import sysconfig, dir_util
lib = sysconfig.get_python_lib()
***************
*** 58,64 ****
modpath = os.path.join(lib, "SimData")
incpath = os.path.join(inc, "SimData")
try:
print "Installing SimData package to", modpath
! copy_dir("SimData", modpath, ['__init__.py', 'Debug.py', 'Parse.py', 'Compile.py', 'cSimData.py', '_cSimData.so'])
print "Installing SimData headers to", incpath
copy_dir("Include/SimData", incpath, headers)
--- 59,73 ----
modpath = os.path.join(lib, "SimData")
incpath = os.path.join(inc, "SimData")
+ package_files = ['__init__.py', 'Debug.py', 'Parse.py', 'Compile.py']
+ win_files = []
+ if not win:
+ package_files.extend(['cSimData.py', '_cSimData.so'])
+ else:
+ win_files.extend(['cSimData.py', '_cSimData.dll'])
try:
print "Installing SimData package to", modpath
! copy_dir("SimData", modpath, package_files)
! if win:
! copy_dir("VisualStudio", modpath, win_files)
print "Installing SimData headers to", incpath
copy_dir("Include/SimData", incpath, headers)
***************
*** 264,269 ****
! if len(sys.argv)==2 and sys.argv[1]=="make_install":
! make_install()
cSimData = Extension("SimData._cSimData",
--- 273,280 ----
! if len(sys.argv)==2:
! command = sys.argv[1]
! if command.startswith("make_install"):
! make_install(command.endswith("win"))
cSimData = Extension("SimData._cSimData",
|