[Distutils] Fwd: setup('postinstall'='my.py')
Chris Barker
chris.barker at noaa.gov
Fri Feb 5 16:08:45 EST 2016
On Fri, Feb 5, 2016 at 8:39 AM, AltSheets Dev <
altsheets+mailinglists at gmail.com> wrote:
> > consider adding some code to the installer itself
> Wouldn't it be great if setuptools.setup provided that option, and
> OS-independent?
>
well, no. setuptools is a bit of an (ugly?) amalgamation of build tool,
install tool, etc...
we are trying to clean that up, so that setuptools is a built tool, and pip
is the install tool (and each can be replaced by other options for your
use-case).
so it would be pip that would need a post-install-hook.
Thought that's tricky too -- where would you put that code, with binary
wheels, or ???
You might look at the conda package manager -- I"m pretty sure it has a
post-install hook.
https://github.com/conda/conda
Great. That sounds as if it is perhaps the way to go then, thanks a lot.
>
> Sounds as if it can do exactly what I need.
>
> However then ... aren't I stuck with a windows-only solution?
>
yup. :-(
-CHB
--
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/20160205/6a2b6d30/attachment.html>
More information about the Distutils-SIG
mailing list