site_archiver@lists.apple.com Delivered-To: Installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=8xziChZv9XOZCebkeUPBBwsxlq1UMO7vm8KxN+ktVGs=; b=WNcI1JLcgyMIEjIAF0qdHlP4FhFgACLeoyTnwYhITtbyj+kKWNOlypEeTnX7zwsKcb 9JC4a8F1f5e2y5dV1gxvBGqfNxCpcEhCUjfrG1OeTQRFotWiByckn1PlNQE/wiEuOAP2 kzbcS1tfuHlDvcD72RPmbf5AobQbARajn4wng= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=iK+oHESm1VctOKIlxV2UQ7ehG1t2nbzwMezlPZ6Yyb5ywQ/mawhtwmilrU37HmCHeo q/hybOIlVnPpdxmC3mze1oVqPvt51cg11HZ/urxRJaqkj41smEiigocl967QMa0v4sPI xyWUc5iXMBES8TK5JFEUW83Xsp3dqH6oWLMgE= Hi, error: can't create or remove files in install directory The following error occurred while trying to add or remove files in the installation directory: /Library/Python/2.5/site-packages/ Sorry for the massive email! and thanks! Chris Maddison _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... I am setting up an installer that installs setuptools and nose testing for Python 2.5 on OS 10.5. To run the install I am creating a temporary file with the source distributions and running short postinstall script to do the installation of the packages. The scripts I have running are fairly simple: #!/bin/sh cd $2nose_installer_temp sh setuptools-0.6c8-py2.5.egg easy_install -v nose exit 0 When I run the equivalent script as an executable outside of the Installer it works great: /Users/chris/Documents/PyGraphics/Installer/Nose/resources/ postinstall ; exit; Corbie:~ chris$ /Users/chris/Documents/PyGraphics/Installer/Nose/ resources/postinstall ; exit; Processing setuptools-0.6c8-py2.5.egg Removing /Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/setuptools-0.6c8-py2.5.egg Copying setuptools-0.6c8-py2.5.egg to /Library/Frameworks/ Python.framework/Versions/2.5/lib/python2.5/site-packages setuptools 0.6c8 is already the active version in easy-install.pth Installing easy_install script to /Library/Frameworks/ Python.framework/Versions/2.5/bin Installing easy_install-2.5 script to /Library/Frameworks/ Python.framework/Versions/2.5/bin Installed /Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/setuptools-0.6c8-py2.5.egg Processing dependencies for setuptools==0.6c8 Finished processing dependencies for setuptools==0.6c8 Searching for nose Best match: nose 0.10.3 Processing nose-0.10.3-py2.5.egg nose 0.10.3 is already the active version in easy-install.pth Installing nosetests script to /Library/Frameworks/Python.framework/ Versions/2.5/bin changing mode of /Library/Frameworks/Python.framework/Versions/2.5/ bin/nosetests to 755 Using /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ site-packages/nose-0.10.3-py2.5.egg Processing dependencies for nose Finished processing dependencies for nose Note that this method has the correct default install location. /Library/Frameworks/Python.framework/Versions/2.5/bin for scripts and / Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages for the modules. When the SAME script is run in the installer I get: [Errno 2] No such file or directory: '/Library/Python/2.5/site- packages/test-easy-install-4156.write-test' The installation directory you specified (via --install-dir, -- prefix, or the distutils default setting) was: This directory does not currently exist. Please create it and try again, or choose a different installation directory (using the -d or --install- dir option). It seems like a different default directory is being used and I can't figure out why or how to change that. I've tried forcing it in various ways suggested in the setuptools documentation, but none of them work perfectly. Is there some quirk of shells that I don't understand, does have it have something to do with different environment variables? It makes no sense to me that they should act differently. This email sent to site_archiver@lists.apple.com