[Distutils] Install a script to <prefix>/sbin instead of <prefix>/bin
Chris Barker
chris.barker at noaa.gov
Sat Dec 7 23:50:04 CET 2013
Just a note here:
the wxWidgets (and thus wxPython, natch) project has a wxStandardPaths
object:
http://docs.wxwidgets.org/trunk/classwx_standard_paths.html
It provides a cross platform way to get, well, the standard paths an
application might need:
GetAppDocumentsDir ()
GetConfigDir ()
GetDataDir ()
GetDocumentsDir ()
GetExecutablePath ()
GetInstallPrefix ()
GetLocalDataDir ()
GetLocalizedResourcesDir ()
GetPluginsDir ()
GetResourcesDir ()
GetTempDir ()
GetUserConfigDir ()
GetUserDataDir ()
GetUserLocalDataDir ()
.....
These all "do the right thing" on the supported platforms -- something may
be in the application install dir on Windows, int he app bundle on the MAc,
and it /etc on Linux, for instance.
granted, wx is an application framework, so it needs this stuff, but while
pip is about installing python packages, there really is no clear line
between at package with a script or two and an application, and even simple
scripts may need a few of these things. I don't see why we couldn't include
a set like this, and have platform-specific mappings.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20131207/60e853a4/attachment.html>
More information about the Distutils-SIG
mailing list