Re: [Distutils] Using Scripts\foo.exe on a python which doesn't have Distribute installed?

2013-05-25 Thread Matt Wilkie
> The foo.exe launcher doesn't use the entry point, all it does is run > an adjacent foo-script.py. You can put anything you want in > foo-script.py adjacent to that .exe, and it'll run. Ahhh, perfect! I've verified it works for me, and much better than bundling a duplicate of Distribute. Thanks!

Re: [Distutils] Using Scripts\foo.exe on a python which doesn't have Distribute installed?

2013-05-25 Thread Matt Wilkie
> Being able to assume the presence of Python on the target system but > *not* the presence of pkg_resources is a fairly idiosyncratic case, > which is why you haven't been able to find much specific info on > handling it. This might be a Windows thing. I'm coming primarily from that background, w

Re: [Distutils] Announcing Setuptools 0.7b3

2013-05-25 Thread Nick Coghlan
On Sun, May 26, 2013 at 6:40 AM, Jason R. Coombs wrote: > Setuptools and Distribute are now merged, and the new home can be found at > https://bitbucket.org/pypa/setuptools. Yay! Thanks for the work both you and PJE have put into making this happen :) The pieces of Python's improved packaging st

Re: [Distutils] Announcing Setuptools 0.7b3

2013-05-25 Thread PJ Eby
On Sat, May 25, 2013 at 7:02 PM, Jason R. Coombs wrote: > I heard in person by a newer > Windows user recently, that they still hear that Setuptools is still > considered friendlier than Distribute. Without knowing what exactly they considered friendlier, I'm not sure what to suggest. Even if yo

Re: [Distutils] Announcing Setuptools 0.7b3

2013-05-25 Thread Jason R. Coombs
I'll be sure to address that before the final release. I have been tempted to just support sdist installs and follow the technique that Distribute used, except for this one comment I heard in person by a newer Windows user recently, that they still hear that Setuptools is still considered frien

Re: [Distutils] Announcing Setuptools 0.7b3

2013-05-25 Thread PJ Eby
On Sat, May 25, 2013 at 4:40 PM, Jason R. Coombs wrote: > https://bitbucket.org/pypa/setuptools/downloads You may be already aware of this, but the installation instructions don't match the available downloads. I was previously thinking we should just drop binary distributions of setuptools al

Re: [Distutils] does pypi or red-dove have a better firehose API than "download all the packages"?

2013-05-25 Thread M.-A. Lemburg
On 24.05.2013 18:18, Donald Stufft wrote: > > On May 24, 2013, at 12:14 PM, "M.-A. Lemburg" wrote: > >> On 24.05.2013 17:21, Vinay Sajip wrote: >>> Donald Stufft stufft.io> writes: >>> Most packages also have an egg-info inside of them you can parse. >>> >>> I don't know how accurate that

Re: [Distutils] Announcing Setuptools 0.7b3

2013-05-25 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/25/2013 04:40 PM, Jason R. Coombs wrote: > Setuptools and Distribute are now merged, and the new home can be > found at https://bitbucket.org/pypa/setuptools. > > Issues for Distribute are still being maintained at its old home, but > releases

Re: [Distutils] Using Scripts\foo.exe on a python which doesn't have Distribute installed?

2013-05-25 Thread Mohd Kamal Bin Mustafa
On Sat, May 25, 2013 at 4:16 PM, Matt Wilkie wrote: > That looks very interesting Nick! > > Do you know of any small or smallish programs using this I could > inspect and learn from? Most of the references I find surround > pyinstaller it's specfile format. This article explain about using the __

[Distutils] Announcing Setuptools 0.7b3

2013-05-25 Thread Jason R. Coombs
Setuptools and Distribute are now merged, and the new home can be found at https://bitbucket.org/pypa/setuptools. Issues for Distribute are still being maintained at its old home, but releases are now made from the 'distribute' fork on the setuptools repo. Future releases of Distribute (if any)

Re: [Distutils] Using Scripts\foo.exe on a python which doesn't have Distribute installed?

2013-05-25 Thread PJ Eby
On Sat, May 25, 2013 at 4:06 AM, Matt Wilkie wrote: >>>... or use a script that doesn't depend on entry points > > not desirable, as we like the .exe entry points creates and don't want > to use a batch file (the "are you sure you want to quit?" message on > ctrl-c is annoying) > >>>, or copy your

Re: [Distutils] Using Scripts\foo.exe on a python which doesn't have Distribute installed?

2013-05-25 Thread Nick Coghlan
On Sat, May 25, 2013 at 6:16 PM, Matt Wilkie wrote: > That looks very interesting Nick! > > Do you know of any small or smallish programs using this I could > inspect and learn from? Most of the references I find surround > pyinstaller it's specfile format. The zipfile execution feature was added

Re: [Distutils] Using Scripts\foo.exe on a python which doesn't have Distribute installed?

2013-05-25 Thread Matt Wilkie
That looks very interesting Nick! Do you know of any small or smallish programs using this I could inspect and learn from? Most of the references I find surround pyinstaller it's specfile format. thanks, -matt On Sat, May 25, 2013 at 1:02 AM, Nick Coghlan wrote: > Hi Matt, if you don't have

Re: [Distutils] Using Scripts\foo.exe on a python which doesn't have Distribute installed?

2013-05-25 Thread Matt Wilkie
>>... or use a script that doesn't depend on entry points not desirable, as we like the .exe entry points creates and don't want to use a batch file (the "are you sure you want to quit?" message on ctrl-c is annoying) >>, or copy your script to >> "foo-script.py" alongside the .exe launcher, and

Re: [Distutils] Using Scripts\foo.exe on a python which doesn't have Distribute installed?

2013-05-25 Thread Matt Wilkie
slapped reply too early, sorry. > Alternatively, you can bundle a copy of pkg_resources.py, I managed to get this to work by adding it as a script in setup.py: #smelly hack, allows foo.exe to run on machines w/out Distribute scripts = [ 'setup/pkg_resources.py', ], this

Re: [Distutils] Using Scripts\foo.exe on a python which doesn't have Distribute installed?

2013-05-25 Thread Nick Coghlan
Hi Matt, if you don't have any C extensions to deal with and can assume Python is already present on the destination system, then a zipfile with a __main__.py file may also be a suitable solution (see PEP 441 for more info about that feature - it's been supported since 2.6, the PEP just proposes so

Re: [Distutils] Using Scripts\foo.exe on a python which doesn't have Distribute installed?

2013-05-25 Thread Matt Wilkie
Thanks PJ. I haven't used py2exe as I don't want to redistribute python also, just our program. I'll dig into your other suggestions and see where I end up. -matt On Wed, May 22, 2013 at 10:22 PM, PJ Eby wrote: > > On Wed, May 22, 2013 at 8:12 PM, Matt Wilkie wrote: > > How do I get my instal

Re: [Distutils] does pypi or red-dove have a better firehose API than "download all the packages"?

2013-05-25 Thread Marius Gedminas
On Fri, May 24, 2013 at 08:05:45PM +, holger krekel wrote: > On Fri, May 24, 2013 at 17:51 +0300, Marius Gedminas wrote: > > On Fri, May 24, 2013 at 02:01:16PM +, holger krekel wrote: > > > On Fri, May 24, 2013 at 09:55 -0400, Donald Stufft wrote: > > > > Most packages also have an egg-info