[Pyobjc-dev] make_distrib.py
Brought to you by:
ronaldoussoren
From: Pierce T.W. I. <pi...@tw...> - 2004-03-10 23:38:52
|
This code: Lines 149-162 in make_distrib.py if osvers != '10.2': # Move the python packages into the right location, 'site-packages' is a # symlink on Panther and we don't want to clobber that. makeDir(BUILDDIR, 'package', 'Library', 'Python', str(PYTHONVER)) os.rename( '%s/package%s/lib/python%s/site-packages/PyObjC'%(BUILDDIR, basedir, PYTHONVER), '%s/package/Library/Python/%s/PyObjC'%(BUILDDIR, PYTHONVER)) os.rename( '%s/package%s/lib/python%s/site-packages/PyObjC.pth'%(BUILDDIR, basedir, PYTHONVER), '%s/package/Library/Python/%s/PyObjC.pth'%(BUILDDIR, PYTHONVER)) # Trash /System/Library/Frameworks/Python.framework in the to-be-installed # tree, we don't want to replace those directories! shutil.rmtree('%s/package/System'%(BUILDDIR,)) Wasn't working for me. I ended up just commenting it out because it seems to be trying to move things from the old places to the new places? That is, the first rename was trying to do: os.rename("pyobjc1.1b2/package/System/Library/Frameworks/ Python.framework/Versions/2.3/lib/python2.3/site-packages/PyObjC", "pyobjc1.1b2/package/Library/Python/2.3/PyObjC") and failing because package/System/etc. didn't exist. Perhaps it should be: if osvers != '10.3'? |