
Hi, i'm new to this list. I hope this question is pertinent to the list, if not please address me to a more appropriate one. I'd like to understand what is the preferred way to cope with demo examples/directory while packaging. I have a classic structure sqlkit-N.n/ sqlkit/ setup.py MANIFEST.in demo/ My goal would be to have a setup so that 'python setup.py sdist' would package also the demo, so that 'python setup.py sdist upload' could be all I need to do to publish it. Is this a reasonable goal? I ask this as I wouldn't know where to place the demo in the target installation. Under Linux that I know pretty well a demo would be under /usr/(local/)/share/doc... but where sould it be placed under Windows? Is this simething that should be taken care of by setuptools? Searching in the docs I never found the 'demo' word and google was not very usefull too. Any hint is appreciated. thanks a lot sandro -- Sandro Dentella *:-) http://www.reteisi.org Soluzioni libere per le scuole http://sqlkit.argolinux.org SQLkit home page - PyGTK/python/sqlalchemy

At 02:25 PM 12/18/2010 +0100, Alessandro Dentella wrote:
Hi,
i'm new to this list. I hope this question is pertinent to the list, if not please address me to a more appropriate one.
I'd like to understand what is the preferred way to cope with demo examples/directory while packaging.
I have a classic structure
sqlkit-N.n/ sqlkit/ setup.py MANIFEST.in demo/
My goal would be to have a setup so that 'python setup.py sdist' would package also the demo, so that 'python setup.py sdist upload' could be all I need to do to publish it. Is this a reasonable goal?
Yes. Just include demo in your MANIFEST.in.
I ask this as I wouldn't know where to place the demo in the target installation.
Well, if you just want to package it in the sdist, you don't need to have a place to install it. If the user wants to run the demo, they can just run it from the unpacked sdist, no?
participants (2)
-
Alessandro Dentella
-
P.J. Eby