-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Raphael Ritz ha scritto: > Manlio Perillo wrote: > Hi. > > I'm starting to use setuptools for my projects and I have a few > questions. > > In my web applications, usually I have some scripts that needs to be > installed as cron scripts. > > I would like to install them using setuptools, since it is important > that the correct python interpreter is used (I use virtualenv), and > setuptools does this automatically.. > > Is it possible to declare a custom directory where some of the scripts > needs to be installed? > >> A different line of thought. > >> For people adopting buildout > >> http://pypi.python.org/pypi/z3c.recipe.usercrontab > >> could come in handy at times for such use cases. >
Thanks, there is also a Unix deployment recipe. However, for my web application there is more work to do. I use Nginx + wsgi module, so I also need to configure Nginx. The Nginx configuration file is actually a Mako template, since some parameters (server name, location paths) depends on the deployment type (development PC, testing server, production server). These parameters are defined in a configuration file, and during setup the configuration file needs to be generated. Should this be done subclassing the config command? >> Raphael > Manlio -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkt783UACgkQscQJ24LbaUQj5ACfYxFnEs3GUUi8ILccx1nDKLx9 3bgAn0yXdNn8kI92IhPxxI4AE6NHeINR =aZvH -----END PGP SIGNATURE----- _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig