Re: [Distutils] unpacking files from and egg only for testing

May 13, 2007
10:57 a.m.
[brought back on-list (forgot/didn't notice this list doesn't set Reply-To)] On 5/13/07, Alexander Schmolck <a.schmolck@gmail.com> wrote:
We're getting out of my depth here. But it is my understanding that the test command adds the source directory to the sys.path, so that you could acquire undeclared data files the old-fashioned way (i.e. os.path.join(mypackage.__path__, 'test-mex.c'), although you might be able to use pkg_resources which is cleaner. Your test would copy the test data to a tempdir, do its thing, check the result, and clean-up.
6519
Age (days ago)
6519
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexander Michael