"Don't put your source in a directory called src or lib. This makes it
hard to run without installing."
You only to have to run 'python setup.py develop' and it's already
solved. There is not complications and you've all very well
structured. And in my case, I prefer put the code source in a
directory called 'pkg'.
[2] "When you're installing a distribution, you can install it in
develop mode instead with python setup.py develop. Using this mode, a
special link file is created in your site-packages directory. This
link points back to the current folder or 'root package'. Any changes
you make to the software here will be reflected immediately without
having to do an install again.
When you're ready to install for good do a real install."
[1] http://guide.python-distribute.org/example.html
[2] http://www.siafoo.net/article/77#install-vs-develop
develop is a Setuptools command, so your advice doesn't work for a
plain Distutils
project. But we could add your advice for the "Setuptools way"
would you mind working on a diff ? or better, joining the project :)
Tarek
On 27 ene, 10:42, Tarek Ziadé <ziade.ta...@gmail.com> wrote:
> On Sun, Jan 24, 2010 at 1:32 PM, Joan Miller <pelok...@gmail.com> wrote:
> > I'm not agree in this advise [1]:
>
> > "Don't put your source in a directory called src or lib. This makes it
> > hard to run without installing."
>
> > You only to have to run 'python setup.py develop' and it's already
> > solved. There is not complications and you've all very well
> > structured. And in my case, I prefer put the code source in a
> > directory called 'pkg'.
At the end I've changed 'pkg' by 'src' as the root of source tree
since it's widely used in python (together to 'lib').
> develop is a Setuptools command, so your advice doesn't work for a
> plain Distutils
> project. But we could add your advice for the "Setuptools way"
Today is widely used virtualenv so could be installed to run it
without installing it in your "main" system. And it also can be
installed in develop mode under a virtual environment
> would you mind working on a diff ? or better, joining the project :)
Sorry! but i have no more free time since that I'm working in several
free/open sources.
On 27 ene, 10:42, Tarek Ziadé <ziade.ta...@gmail.com> wrote:
> On Sun, Jan 24, 2010 at 1:32 PM, Joan Miller <pelok...@gmail.com> wrote:At the end I've changed 'pkg' by 'src' as the root of source tree
> > I'm not agree in this advise [1]:
>
> > "Don't put your source in a directory called src or lib. This makes it
> > hard to run without installing."
>
> > You only to have to run 'python setup.py develop' and it's already
> > solved. There is not complications and you've all very well
> > structured. And in my case, I prefer put the code source in a
> > directory called 'pkg'.
since it's widely used in python (together to 'lib').