-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 P.J. Eby ha scritto: > At 04:37 PM 2/16/2010 +0100, Manlio Perillo wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> P.J. Eby ha scritto: >> > At 02:23 PM 2/16/2010 +0100, Manlio Perillo wrote: >> >> Is it possible to declare a custom directory where some of the scripts >> >> needs to be installed? >> > >> > No. However, you can always create a script whose job is to symlink >> > your other scripts to the appropriate cron directory, and ask your >> users >> > to run it after installation. >> > >> >> Can't this be done inside setup.py? > > You could make a setup command, or customize the "install" command, but > neither of these things would affect easy_install or pip. > > [...] > > (Heck, if what you've got is a singleton application of some sort, you > could potentially just have it check at startup that the cron scripts > are symlinked, and let the user know about the problem.) >
You are right, this is a singleton web application! So, it will not be installed using pip or easy_install. I have to decide if it is best to "abuse" setuptools plugin support, in order to install system services (cron scripts, init.d script) or if it is better to provide a separate script, as you suggested. And, no, it is not that easy to do checks at startup, since it is a WSGI application embedded in Nginx (and when I'm on my PC or testing server, the cron scripts are not required). Thanks Manlio -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEUEARECAAYFAkt6/AEACgkQscQJ24LbaUSkxQCYtpARxMvMABorLqgfqYQxpdls XgCfStNbPH+WeWmwr40IQLqzFUkZ/m4= =57or -----END PGP SIGNATURE----- _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
