
I'm creating a software package for in-house consumption, and will be using setuptools to create an egg that I can easily install, upgrade, etc. I'm able to answer most of my own questions from trolling through the documentation, but I have two that I can't find the answers for: 1) If I depend on packages that are not in PyPI and are not available through some other simple means (svn, simple .py, etc.), can I note these dependencies in such a way that easy_install will complain if they are not present and _stop_ installation? 2) If I already have a "main" script, is it possible to have that installed in /usr/local/bin (assuming my install path is "/usr/ local")? If so, how? I read this section (http://peak.telecommunity.com/DevCenter/setuptools#automatic-script-creation ) but it doesn't seem to address my issue. Thanks, Mike ------------------------------------------------------ Michael Hearne mhearne@usgs.gov (303) 273-8620 USGS National Earthquake Information Center 1711 Illinois St. Golden CO 80401 Senior Software Engineer Synergetics, Inc. ------------------------------------------------------

At 04:27 PM 4/22/2008 -0600, Michael Hearne wrote:
I'm creating a software package for in-house consumption, and will be using setuptools to create an egg that I can easily install, upgrade, etc.
I'm able to answer most of my own questions from trolling through the documentation, but I have two that I can't find the answers for:
1) If I depend on packages that are not in PyPI and are not available through some other simple means (svn, simple .py, etc.), can I note these dependencies in such a way that easy_install will complain if they are not present and _stop_ installation?
No. After all, if the package isn't available in such a way that easy_install can install it, then there is also no way for easy_install to detect its presence or absence, anyway.
2) If I already have a "main" script, is it possible to have that installed in /usr/local/bin (assuming my install path is "/usr/ local")? If so, how? I read this section (http://peak.telecommunity.com/DevCenter/setuptools#automatic-script-creation ) but it doesn't seem to address my issue.
Just use the regular distutils 'scripts' option.
participants (2)
-
Michael Hearne
-
Phillip J. Eby