-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 P.J. Eby ha scritto: > At 12:19 PM 4/23/2010 +0200, Manlio Perillo wrote: >> Hi. >> >> In a project test suite I need some external resources, that must be >> downloaded from internet. >> >> Is this directly supported by setuptools, or it is better if I write an >> additional script that does the job? > > If the resources can be accessed in the form of an .egg file (or > directory) added to sys.path, setuptools can handle it.
The resources are archives that must be downloaded from internet, decompressed and processed. Right now I'm using a shell script that must be manually executed. The data is copied to a test/resources directory. The test directory contains the test suite and it is in the top level directory of the Python project. It is not installed on the system by the setup.py script. Test functions access the the data using __file__. I was just wondering if there is a better method. Thanks Manlio -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkvVxQAACgkQscQJ24LbaUQdXACfT9gQHDOto/utLXs6Xuc8qt8N eYsAnRlw35TUAZIWiWSNpUEJT0AQjmkh =jJg4 -----END PGP SIGNATURE----- _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig