Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62112 > unrolled thread
| Started by | Oscar Benjamin <oscar.j.benjamin@gmail.com> |
|---|---|
| First post | 2013-12-16 22:39 +0000 |
| Last post | 2013-12-16 22:39 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Packaging a private project Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-12-16 22:39 +0000
| From | Oscar Benjamin <oscar.j.benjamin@gmail.com> |
|---|---|
| Date | 2013-12-16 22:39 +0000 |
| Subject | Re: Packaging a private project |
| Message-ID | <mailman.4239.1387233579.18130.python-list@python.org> |
[Multipart message — attachments visible in raw view] — view raw
On Dec 16, 2013 11:20 AM, "Nicholas Cole" <nicholas.cole@gmail.com> wrote: > > Dear List, > > What is the best way to distribute a private, pure python, Python 3 > project that needs several modules (some available on pypi but some > private and used by several separate projects) in order to run? > > I'd like to include everything that my project needs to run in a > single package. The best way to do this seems to be to be to create > symlinks to the source code of the "3rd party" modules I need and > create a setup.py file that includes them in its "packages" list. Is > this what other people do? > > But even more ideally, I'd like to package my script and its > dependencies in a single zip file that can be executed by python > directly. I see several declarations that this is possible online, > but I can't find a simple recipe for converting a script and its > dependencies into this kind of distribution. Could someone give me a > pointer to a description of "the right way to do it". For pure python code it's as simple as putting the code in a zip file with a script called __main__.py. Then you can run the zip file with python as if it was a python script. Oscar
Back to top | Article view | comp.lang.python
csiph-web