zip_safe=False not being respected?

Hi All, I'm trying to install a package into a Zope INSTANCE_HOME with: python2.4 setup.py install --home=$INSTANCE_HOME ...however, this is leaving me with an easy-install.pth and a .egg file in $INSTANCE_HOME, even though the package has zip_safe=False in its setup.py. What gives? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk

Chris Withers wrote:
...however, this is leaving me with an easy-install.pth and a .egg file in $INSTANCE_HOME,
...should have been "in $INSTANCE_HOME/lib/python". cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk

Chris Withers wrote:
Chris Withers wrote:
...however, this is leaving me with an easy-install.pth and a .egg file in $INSTANCE_HOME,
Okay, so the .egg is actually a directory and not a file. ...and in there is lurking the package I'm trying install. Why all this convolution? Why not install the package where I actually asked it to go? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk

On Fri, Apr 18, 2008 at 6:30 AM, Chris Withers <chris@simplistix.co.uk> wrote:
Chris Withers wrote:
Chris Withers wrote:
...however, this is leaving me with an easy-install.pth and a .egg file in $INSTANCE_HOME,
Okay, so the .egg is actually a directory and not a file. ...and in there is lurking the package I'm trying install.
Why all this convolution? Why not install the package where I actually asked it to go?
By default, setuptools enabled setup.py's install eggs (either zipped or unzipped) so that you can multiple version installed (but only one active, of course). If you want to install just a single version as a standard python package directory, then use the --single-version-externally-managed option as described in the documentation: <http://peak.telecommunity.com/DevCenter/setuptools#install-run-easy-install-...>.

On Apr 18, 2008, at 6:19 AM, Chris Withers wrote:
Hi All,
I'm trying to install a package into a Zope INSTANCE_HOME with:
python2.4 setup.py install --home=$INSTANCE_HOME
...however, this is leaving me with an easy-install.pth and a .egg file in $INSTANCE_HOME, even though the package has zip_safe=False in its setup.py.
What gives?
What platform? --home is ignored on windows. Note that zope-safe has nothing to do with install location. Jim -- Jim Fulton Zope Corporation

On Apr 18, 2008, at 8:28 AM, Jim Fulton wrote:
On Apr 18, 2008, at 6:19 AM, Chris Withers wrote:
Hi All,
I'm trying to install a package into a Zope INSTANCE_HOME with:
python2.4 setup.py install --home=$INSTANCE_HOME
...however, this is leaving me with an easy-install.pth and a .egg file in $INSTANCE_HOME, even though the package has zip_safe=False in its setup.py.
What gives?
What platform? --home is ignored on windows.
Sorry, I didn't read your note carefully enough. --home says to use a unix-style layout rooted at the given directory. I believe you want --install-lib Jim -- Jim Fulton Zope Corporation

Jim Fulton wrote:
What platform? --home is ignored on windows.
Sorry, I didn't read your note carefully enough.
--home says to use a unix-style layout rooted at the given directory.
I believe you want --install-lib
python2.4 setup.py install --install-lib=$INSTANCE/lib/python ...still gives me a .pth and .egg dir in $INSTANCE/lib/python, which isn't what I want as .pth files don't work in $INSTANCE/lib/python cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (3)
-
Alexander Michael
-
Chris Withers
-
Jim Fulton