Mailinglist Archive: opensuse-bugs (7472 mails)

< Previous Next >
[Bug 361749] wrong installation directory in python distutils
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 20 Feb 2008 04:07:27 -0700 (MST)
  • Message-id: <20080220110727.4BC1124538D@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=361749

User jmatejek@xxxxxxxxxx added comment
https://bugzilla.novell.com/show_bug.cgi?id=361749#c1


Jan Matejek <jmatejek@xxxxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED




--- Comment #1 from Jan Matejek <jmatejek@xxxxxxxxxx> 2008-02-20 04:07:26 MST
---
uh-oh.
now there's a problem with our distutils that i didn't anticipate.

The thing is, I modified the distutils to install everything under /usr/local,
because that's where user-installed applications normally belong (according to
FHS). Python, however, isn't too happy about it - for one thing, it can't
distinguish between user-installed and distribution-installed applications.

This is where the sys.prefix thing comes in. In theory, you shouldn't rely on
sys.prefix to find your files, and instead use something like sys.app_prefix
(which does not exist) or use paths relative to the executable (which is not
very nice approach). In practice, this goes to show that FHS is not so great
and that there are problems all around.

I'll look into the issue and cause some ruckus on some mailing lists, but be
aware that this is not a simple issue and i'll most likely WONTFIX it.
In the meantime, you can use workaround - "python setup.py install
--prefix=/usr" will install your application the same way other distros do.


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References