[Distutils] Bundling pkg_resources

2009-11-30 Thread Ram Rachum
I've asked before about bundling Distribute. But now I ask, is it possible to pull out the `pkg_resources` module from the Distribute folder and bundle only that with my project? Also, is that `pkg_resources` module different than the one that comes with setuptools? Thanks, Ram. __

Re: [Distutils] Please help me use PyPI

2009-11-17 Thread Ram Rachum
Comments inline. Chris Withers simplistix.co.uk> writes: > > Ram Rachum wrote: > > (1.) I have 4 different forks for my project for Python versions 2.4, 2.5, 2.6 > > and 3.1. Should they all be on the same name in PyPI? > > Yes. > Sounds good. But I am confus

[Distutils] Please help me use PyPI

2009-11-17 Thread Ram Rachum
Hi all, I'm trying to release my project to PyPI today. I have three problems: (1.) I have 4 different forks for my project for Python versions 2.4, 2.5, 2.6 and 3.1. Should they all be on the same name in PyPI? (2.) I'm trying to upload an MSI. I'm doing `setup.py bdist_msi register upload`.

Re: [Distutils] Making a tar.gz source distribution

2009-11-16 Thread Ram Rachum
Tarek Ziadé gmail.com> writes: > Notice that the upcoming version does not rely on externals program > anymore, and will use > the stdlib module to work with the tar engine. > > Regards > ___ > Distutils-SIG maillist - Distutils-SIG python.org > h

Re: [Distutils] Making a tar.gz source distribution

2009-11-16 Thread Ram Rachum
ssteinerX gmail.com gmail.com> writes: > > > On Nov 16, 2009, at 11:10 AM, Ram Rachum wrote: > > > I'm trying to make a tar.gz source distribution. I saw in the docs > > that a tar > > program is needed. I am on Windows. Where do I get one? > &

[Distutils] Making a tar.gz source distribution

2009-11-16 Thread Ram Rachum
I'm trying to make a tar.gz source distribution. I saw in the docs that a tar program is needed. I am on Windows. Where do I get one? Ram. ___ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig

Re: [Distutils] Including package data with Distribute

2009-11-16 Thread Ram Rachum
Ram Rachum cool-rr.com> writes: > > Okay, new development. I've written a MAINFEST.in file like this: > > recursive-include garlicsim_wx * > recursive-exclude garlicsim_wx *.pyc > > When I do an sdist, I see all is good, it includes my images in the package. >

Re: [Distutils] Including package data with Distribute

2009-11-16 Thread Ram Rachum
Tarek Ziadé gmail.com> writes: > no. if you change MANIFEST.in, MANIFEST is rebuilt. You have to re-run > the sdist command though. > Okay, new development. I've written a MAINFEST.in file like this: recursive-include garlicsim_wx * recursive-exclude garlicsim_wx *.pyc When I do an sdist, I

Re: [Distutils] Including package data with Distribute

2009-11-16 Thread Ram Rachum
David Cournapeau gmail.com> writes: > > On Mon, Nov 16, 2009 at 11:28 AM, Ram Rachum cool-rr.com> wrote: > > > > > > You said on StackOverflow to look in distutils' docs to read about the template > > language for MANIFEST.in. > > >

Re: [Distutils] Including package data with Distribute

2009-11-15 Thread Ram Rachum
Tarek Ziadé gmail.com> writes: > Until then, I would recommend using an explicit MANIFEST.in and stick > with plain Distutils options, You said on StackOverflow to look in distutils' docs to read about the template language for MANIFEST.in. http://docs.python.org/distutils/commandref.html?hi

Re: [Distutils] Deleting build directory

2009-11-15 Thread Ram Rachum
Ben Finney benfinney.id.au> writes: > > cool-RR cool-rr.com> writes: > > > What I really want is never having to worry about the build directory > > being around after doing any actions with `setup.py`. Do you have any > > other suggestion? > > If you have determined that ‘setup.py install cl

[Distutils] Including package data with Distribute

2009-11-15 Thread Ram Rachum
Hey guys, Please take a look at my question about including package data: http://stackoverflow.com/questions/1734373/including-package-data-with-distribute/ (I don't care whether you answer here or on StackOverflow.) Ram. ___ Distutils-SIG maillist

Re: [Distutils] `pkg_resources.require()`doesn ’t see wxPython

2009-11-14 Thread Ram Rachum
Tarek Ziadé gmail.com> writes: > > On Fri, Nov 13, 2009 at 9:55 PM, cool-RR cool-rr.com> wrote: > > I'm having trouble using Distribute's pkg_resources.require(). I posted a > > question on StackOverflow: > > http://stackoverflow.com/questions/1728676/pkgresources-require-doesnt-see- wxpython >

Re: [Distutils] Deleting build directory

2009-11-13 Thread Ram Rachum
Ben Finney benfinney.id.au> writes: > > Ram Rachum cool-rr.com> writes: > > > What's the best way to delete the "build" directory both before and > > after installation, using Distribute? I want to do it so the user will > > only need to do &qu

[Distutils] Deleting build directory

2009-11-13 Thread Ram Rachum
What's the best way to delete the "build" directory both before and after installation, using Distribute? I want to do it so the user will only need to do "setup.py install", and the build directory will be pre- and post-deleted. Thanks, Ram. ___ Di

Re: [Distutils] People want CPAN

2009-11-09 Thread Ram Rachum
Guido van Rossum python.org> writes: > > I just found this comment on my blog. People have told me this in > person too, so I believe it is real pain (even if the solution may be > elusive and the suggested solutions may not work). But I don't know > how to improve the world. Is the work on dist

Re: [Distutils] Bundling Distribute

2009-11-06 Thread Ram Rachum
Tarek Ziadé gmail.com> writes: > You need an internet connection unless you provide an archive of > distribute alongside > the distribute_setup.py script in your archive. In that case, it will > use it rather than getting > it at PyPI, > > So yes, there is a way to get it installed with your dist

Re: [Distutils] Bundling Distribute

2009-11-05 Thread Ram Rachum
Lennart Regebro gmail.com> writes: > > 2009/11/5 Ram Rachum cool-rr.com>: > > Why only if there's C code? > > Because in general you want to compile the code on the system when > it's Linux or osx etc. It works better, and you don't have to pr

Re: [Distutils] Bundling Distribute

2009-11-05 Thread Ram Rachum
Lennart Regebro gmail.com> writes: > 2. You should only create binary releases if your module contains > C-code and then only for Windows. > Why only if there's C code? I personally find it more convenient to install binaries than from source. ___ D

Re: [Distutils] Bundling Distribute

2009-11-05 Thread Ram Rachum
Tarek Ziadé gmail.com> writes: > There's a trick to use it without installing it : > > - add the distribute_setup.py script besides your setup.py script > - call the use_setuptools API in setup.py, so distribute gets > downloaded then added in the path > (see the documentation for that) > > A

Re: [Distutils] Bundling Distribute

2009-11-05 Thread Ram Rachum
Tarek Ziadé gmail.com> writes: > > On Thu, Nov 5, 2009 at 8:58 PM, Ram Rachum cool-rr.com> wrote: > > > > Does it make sense? Will it work? Anything else I > > should keep in mind? > > Hello, > > It is possible to bundle, but the best strategy depen

[Distutils] Bundling Distribute

2009-11-05 Thread Ram Rachum
Hello, I would like to bundle Distribute with my project so that I could use it without making my users install it. (I like to keep things as simple as possible for my users.) Is it possible? I thought of just copying the "setuptools" folder from the source distribution into a package in my proj