New submission from Keith Yang:
File "/Users/keitheis/Quest/biienv/lib/python2.7/site-packages/setuptools/package_index.py", line 161, in __init__
if verify_ssl and ssl_support.is_available and (ca_bundle or ssl_support.find_ca_bundle()):
File "/Users/keitheis/Quest/biienv/lib/python2.7/site-packages/setuptools/ssl_support.py", line 239, in find_ca_bundle
return pkg_resources.resource_filename('certifi', 'cacert.pem')
NameError: global name 'pkg_resources' is not defined
title: 'pkg_resources' is not defined in ssl_support.py
Added file: http://bugs.python.org/setuptools/file89/patch_ssl_support.diff
Setuptools tracker <setuptools(a)bugs.python.org>
I have a little web framework, let's call it Bread, which is used to
build applications like Jam, Marmalade, PeanutButter, and other
toppings. Bread both *builds* and *serves* these applications.
I'm trying to figure out how to make the applications' `setup.py`s
work, given the following requirements:
* The apps depend upon Bread, via
* To build an application at development time, Bread reads some config
and then emits assets (HTML, JS, CSS, images, etc) to the
application's `output` directory. In other words, `bread devserver`
reads `Jam/bread.yaml` and assembles assets in `Jam/output`, then
serves the application (via Flask, but that's not otherwise pertinent).
* In order to build a *deployable* Jam application, I want to invoke
Bread during `python setup.py install` of Jam, to build
`Jam/output`. In production, Jam should not need to build anything.
* I've defined a custom `bdist_egg` setup command where
`initialize_options` imports Bread, invokes the builder, then sets
`self.distribution.data_files` with the appropriate tuples, before
calling the base class. (And *that* was no fun to figure out.)
* Right now, the `bdist_egg` is defined in Jam's `setup.py`. I want to
move this and other boilerplate code into `bread.setup`, so that I
can reuse it in Marmalade, PeanutButter, etc.
* Potentially, this means that I'm now importing Bread code before
Bread has been installed. This will surely arise in a clean install,
such as a fresh virtualenv on a build machine.
Can this be done with Distutils / setuptools / Distribute?
/George V. Reilly george(a)reilly.org Twitter: @georgevreilly
but seriously, at long last today it was my honor to throw the DNS switch to move PyPI to the Fastly caching CDN. I would like to thank Donald Stufft for doing much of the heavy lifting on the PyPI side, and to Fastly for graciously offering to host us. What does this mean for everyone? Well the biggest change is PyPI should get a whole lot faster. There are two major downsides however. There will now be a delay of several minutes in some cases between updating a package and having it be installable, and download counts will now be even more incorrect than they were before. The PyPI admins are discussing what to do about download counts long-term, but for now we all feel that the performance and availability benefits outweigh the loss. If anyone has any questions, or hears anything about issues with PyPI please don't hesitate to contact me.
Just deployed a small update to PyPI that sets autofocus on the search
form. This'll mean that you don't need to manually move to the search
form upon page load and should be able to start typing immediately.
Could it be that recent PyPI CDN changes broke zc.buildout somehow?
$ wget http://downloads.buildout.org/2/bootstrap.py
$ cat buildout.cfg
parts = zodbbrowser
recipe = zc.recipe.egg
$ python bootstrap.py
Error: Couldn't find a distribution for 'zodbbrowser'.
$ virtualenv env && env/bin/pip install zodbbrowser
$ virtualenv env && env/bin/easy_install zodbbrowser
Those who can't write, write manuals.
-----BEGIN PGP SIGNED MESSAGE-----
after switching to the new PyPI CDN infrastructure we have seen some
odd behavior with buildout fetching two hundred packages or so.
Packages that are a located on PyPI have not been available to the CDN
or only after some minutes. Note that these packages have not been fresh
releases but older stuff. Is this a known issues or explainable behavior
of the CDN?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
There's been some issues with buildout and the new PyPI CDN. I'm going
to see if I can sort this out.
If anyone has buildout successfully working and sees this I'd love to
know. To see if this is widespread or specific to a certain set of
I'm fairly interested in the internals of pypi.
Ultimately pypi is a HTTP interface to a package database.
I went looking for a document, blog post or anything describing the communication between pypi client and server.
I ended up reading pypiserver's source code to find out the internals.
Is there a reason why there haven't been a PEP describing the pypi interface ?
*I've been up one side of the internet and down the other, and haven't seen
this question discussed before, but as has often been the case perhaps it's
just my search-fu which is weak, in which case, please kindly direct me to
the answer or documentation where I can find it. Thanks :)*
How to distribute a usable python program to a python which doesn't have
I've created a Windows Binary installer using python setup.py bdist_wininst.
The setup.py contains a console script entry point, so that a Windows .exe
file is created and placed in %python%\Scripts on the destination machine,
as per Automatic Script
However running the installed script on a machine with a virgin python
D:\Py3.2.5> scripts\foo.exeTraceback (most recent call last):
File "D:\Py3.2.5\scripts\foo-script.py", line 5, in <module>
from pkg_resources import load_entry_pointImportError: No module
No module named
me this error is because
Distribute <http://pythonhosted.org/distribute/index.html> is not installed.
How do I get my installer to include Distribute so I don't have to tell our
users *"before you install our program you have to go install this other
thanks in advance for your time,