Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #5111 > unrolled thread

Re: Merge multiple source directories into one package with distutils?

Started byMiki Tebeka <miki.tebeka@gmail.com>
First post2011-05-11 06:15 -0700
Last post2011-05-12 10:50 +1200
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Re: Merge multiple source directories into one package with distutils? Miki Tebeka <miki.tebeka@gmail.com> - 2011-05-11 06:15 -0700
    Re: Merge multiple source directories into one package with distutils? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-05-12 10:50 +1200

#5111 — Re: Merge multiple source directories into one package with distutils?

FromMiki Tebeka <miki.tebeka@gmail.com>
Date2011-05-11 06:15 -0700
SubjectRe: Merge multiple source directories into one package with distutils?
Message-ID<4228410e-4631-47be-936c-041122f27ffb@glegroupsg2000goo.googlegroups.com>
Greg,
> Is there a straightforward way to tell distutils to merge
.py files from more than one source directory into a single
package when installing?
The Selenium Python bindings does something like that, have a look at http://selenium.googlecode.com/svn/trunk/setup.py

The other option is to write some code in setup.py before calling "setup" to do the merge.

HTH
--
Miki Tebeka <miki.tebeka@gmail.com>
http://pythonwise.blogspot.com

[toc] | [next] | [standalone]


#5173

FromGregory Ewing <greg.ewing@canterbury.ac.nz>
Date2011-05-12 10:50 +1200
Message-ID<930i5iFas9U1@mid.individual.net>
In reply to#5111
Miki Tebeka wrote:

> .py files from more than one source directory into a single
> package when installing?
> The Selenium Python bindings does something like that, have a look at http://selenium.googlecode.com/svn/trunk/setup.py

Unless I'm missing something, nothing out of the ordinary is
happening there. Each destination directory is getting .py
files from just one source directory.

I'm not talking about a package with multiple submodules,
I know how to do that. I'm talking about putting .py files
from more than one source directory into the same intallation
directory.

E.g. Source:

   stuff/__init__.py
   stuff/dir1/foo.py
   stuff/dir2/blarg.py

Installation:

   stuff/__init__.py
   stuff/foo.py
   stuff/blarg.py

-- 
Greg

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web