Daniel Holth | 23 May 19:12
Picon

pypm binary package format

I was curious about the pypm binary package format. They are in the
.tar.gz format (but with .pypm extension). They contain two files:

info.json:

{u'author': u'Zope Foundation and Contributors',
 u'author_email': u'zope-dev <at> zope.org',
 u'description': '...',
 u'home_page': u'http://pypi.python.org/pypi/zope.interface',
 u'install_requires': {u'': [u'distribute'],
                       u'docs': [u'z3c.recipe.sphinxdoc'],
                       u'test': [u'zope.event']},
 u'keywords': None,
 u'license': u'ZPL 2.1',
 u'maintainer': None,
 u'maintainer_email': None,
 u'name': u'zope.interface',
 u'osarch': u'win32-x86',
 u'pkg_version': 1,
 u'pyver': u'2.7',
 u'summary': u'Interfaces for Python',
 u'version': u'3.8.0'}

data.tar.gz:

Lib/site-packages/zope.interface/... (including .pyd or .so)
Lib/site-packages/zope.interface-3.8.0-py27.egg-info/(normal egg-info stuff)

When installed, Lib/ is unpacked into %APPDATA%\Python\Python27\site-packages\
_______________________________________________
(Continue reading)

Oscar Benjamin | 23 May 13:50
Picon

command hooks...

On 23 May 2012 07:48, Tarek Ziadé <tarek <at> ziade.org> wrote:
On 5/23/12 8:16 AM, Robert Park wrote:
On Mon, May 21, 2012 at 3:42 PM, Tarek Ziadé<tarek <at> ziade.org>  wrote:
If you are a packager for a project, you can describe in details your data
files, and add more metadata that are understood by PyPI.

If you are a debian packager, you will be able to define where the data
files of a python project should be installed without having to patch some
python code.
This right here is the killer feature for me. By my limited
observations, most people solve the data files problem either by
dumping their data files inside their python modules (which is an ugly
abuse of the filesystem), or are simply using the cumbersome autotools
in order to record the installation prefix for their data files. It
blows my mind that it is standard practice for many GNOME apps written
in Python to use a C compilation preprocessor in order to set a python
variable so their python scripts can find their data files.

Currently I am hacking distutils in order to accomplish this, like so:

https://github.com/robru/gottengeography/blob/master/setup.py

But this is ugly because it modifies the file in-place, so I always
have to be careful not to accidentally commit the munged file into my
git repo.

It's absolutely critical that any replacement for distutils have
built-in functionality for installed python code being able to query
at run-time the location that data files were placed at install time.

Please read this section and let us know what you think:

http://docs.python.org/dev/packaging/setupcfg.html#resources

How do gettext translation files fit into this scheme? Should they go under appdata?
 


This works in conjunction with the new sysconfig module, which can be configured system-wide by the linux distribution, or locally per projet

Then you can use an API to get the file from your code.

Gosh the documentation is a mess ... we need to fix this - it has bits from the previous version that should be removed :(

Cheers
Tarek

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG <at> python.org
http://mail.python.org/mailman/listinfo/distutils-sig


_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG <at> python.org
http://mail.python.org/mailman/listinfo/distutils-sig
Rob Healey | 19 May 06:49
Picon

packaging in Python-3.3.0 ???

Hello once agai:

Is packaging in Python-3.3.0 a more complete software than DU2???  If it is, then I will start using it instead...?

--
Sincerely yours,

Rob G. Healey


_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG <at> python.org
http://mail.python.org/mailman/listinfo/distutils-sig
Rob Healey | 19 May 05:14
Picon

Distutils2 in Python-3.3.0

Good evening to all!

I am also willing to help out too...

What is the process for submitting patches?  But I must, in all respects, patches are USELESS without someone to commit them!!!

There needs to be more than one person who can commit the patches...

--
Sincerely yours,

Rob G. Healey


_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG <at> python.org
http://mail.python.org/mailman/listinfo/distutils-sig
Vinay Sajip | 18 May 17:24
Picon
Favicon
Gravatar

Odd problem with distribute 0.6.26 and 2to3

I'm having an odd problem with distribute and 2to3 when working with the venv 
branch of Python 3.3 (PEP 405 - http://bugs.python.org/issue14712), and I'm 
hoping one of the Fellowship of the Packaging can help.

The problem: I created a venv with no Distribute installed. Then I downloaded 
and extracted distribute-0.6.26.tar.gz in a scratch folder, and ran setup.py 
install using the venv's python. This gave errors because some of the setuptools 
sources still have 2.x syntax, despite having been processed by 2to3.

To investigate further, I added logging to distutils refactoring code to print 
what was being refactored. I won't list the entire log output [1], but when 
looking at just one file which caused a SyntaxError - 
setuptools/tests/test_packageindex.py - I see the following output from the 
"setup.py install" operation:

creating build
creating build/src
...
copying setuptools/tests/test_packageindex.py -> build/src/setuptools/tests
...
copying launcher.c -> build/src
Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma
refactored build/src/setuptools/script template (dev).py
...
refactored build/src/setuptools/tests/test_packageindex.py
...
refactored build/src/release.py
Before install bootstrap.
Scanning installed packages
No setuptools distribution found
running install
running build
running build_py
creating build/lib
...
copying setuptools/tests/test_packageindex.py -> build/lib/setuptools/tests
...
creating /tmp/venv/lib/python3.3/site-packages/setuptools/tests
copying build/lib/setuptools/tests/test_packageindex.py -> 
/tmp/venv/lib/python3.3/site-packages/setuptools/tests
...
running install_lib
...
creating /tmp/venv/lib/python3.3/site-packages/setuptools
creating /tmp/venv/lib/python3.3/site-packages/setuptools/tests
copying build/lib/setuptools/tests/test_packageindex.py -> 
/tmp/venv/lib/python3.3/site-packages/setuptools/tests
...
byte-compiling /tmp/venv/lib/python3.3/site-
packages/setuptools/tests/test_packageindex.py to test_packageindex.cpython-
33.pyc
...
running install_egg_info
Writing /tmp/venv/lib/python3.3/site-packages/distribute-0.6.26-py3.3.egg-info
setup.py:139: ResourceWarning: unclosed file <_io.TextIOWrapper 
name='README.txt' mode='r' encoding='UTF-8'>
  long_description = open('README.txt').read() + open('CHANGES.txt').read(),
setup.py:139: ResourceWarning: unclosed file <_io.TextIOWrapper 
name='CHANGES.txt' mode='r' encoding='UTF-8'>
  long_description = open('README.txt').read() + open('CHANGES.txt').read(),
/home/vinay/projects/python/sandbox/Lib/distutils/dist.py:257: UserWarning: 
Unknown distribution option: 'test_suite'
  warnings.warn(msg)
/home/vinay/projects/python/sandbox/Lib/distutils/dist.py:257: UserWarning: 
Unknown distribution option: 'entry_points'
  warnings.warn(msg)
/home/vinay/projects/python/sandbox/Lib/distutils/dist.py:257: UserWarning: 
Unknown distribution option: 'zip_safe'
  warnings.warn(msg)
  File "/tmp/venv/lib/python3.3/site-
packages/setuptools/tests/test_packageindex.py", line 17
    except Exception, v:
                    ^
SyntaxError: invalid syntax

Now the first part seems straightfoward: files are copied to build/src and then 
2to3 is run over them. But then, following the "No setuptools distribution 
found", files are copied to build/lib not from the 2to3-processed output at 
build/src, but rather the actual 2.x sources shipped with distribute. That looks 
wrong; at the point where setup is called, src_root is correctly set to 
build/src, and moreover, that's the first entry on sys.path. I'm not sure why 
there's no error immediately following the "byte-compiling ..." line when 
running install_lib, but the error seems to occur a little later, when running 
install_egg_info ...  

Can anyone shed any light on what's happening here?

Regards,

Vinay Sajip

[1] https://gist.github.com/2725747

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG <at> python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Daniel Holth | 17 May 06:03
Picon

{dist-info} category in resources = ...

My take on installing entry_points.txt is to add a {dist-info}
category in [files] resources = to copy extra files into the
.dist-info dir...

How do I write entry_points.txt when it is given as an argument to
setup(entry_points=...)? Should I write a build command hook to write
the file and a setup_hook to append the new file to [files] resources
= so it will finally be copied?
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG <at> python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Arturo Rinaldi | 16 May 01:01
Picon
Gravatar

total uninstall of setuptool on MacOS X by consequence of manual install

I installed some time ago on MacOS X Lion the python-setuptools script with the shell command

$ sudo sh setuptools-0.6c11-py2.7.egg

then I uninstalled any .egg installed and removed the script itself with

$ sudo easy_install -m setuptools

which in turn removed the easy_install.pth file in the /Library/Python/2.7/site-packages/ directory. Now by running the command ls in that directory i get :

README                     
setuptools.pth             
vboxapi-1.0-py2.7.egg-info
setuptools-0.6c11-py2.7.egg
vboxapi/

can i remove setuptools.pth and setuptools-0.6c11-py2.7.egg too ? I'd like also to perform a total clean uninstallation so i searched in my HD and i found that i still have the files :

/usr/bin/easy_install     
/usr/bin/easy_install-2.5 
/usr/bin/easy_install-2.6 
/usr/bin/easy_install-2.7

and the following directories (i attach the output in a text file). I also installed python-numpy through it and then uninstalled the package itself in the standard way.

Which directories and files can i delete without harming my system (so i can totally switch to macports) ? Thx in advance.

Regards, Arturo
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/__init__.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/__init__.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/archive_util.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/archive_util.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/cli.exe
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/__init__.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/__init__.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/alias.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/alias.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/bdist_egg.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/bdist_egg.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/bdist_rpm.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/bdist_rpm.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/bdist_wininst.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/bdist_wininst.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/build_ext.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/build_ext.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/build_py.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/build_py.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/develop.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/develop.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/easy_install.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/easy_install.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/egg_info.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/egg_info.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/install.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/install.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/install_egg_info.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/install_egg_info.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/install_lib.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/install_lib.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/install_scripts.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/install_scripts.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/register.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/register.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/rotate.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/rotate.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/saveopts.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/saveopts.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/sdist.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/sdist.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/setopt.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/setopt.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/test.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/test.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/upload.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/command/upload.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/depends.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/depends.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/dist.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/dist.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/extension.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/extension.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/gui.exe
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/package_index.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/package_index.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/sandbox.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/sandbox.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/tests
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/tests/__init__.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/tests/__init__.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/tests/doctest.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/tests/doctest.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/tests/test_packageindex.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/tests/test_packageindex.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/tests/test_resources.py
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools/tests/test_resources.pyc
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools-0.6c9-py2.5.egg-info
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools-0.6c9-py2.5.egg-info/PKG-INFO
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools-0.6c9-py2.5.egg-info/SOURCES.txt
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools-0.6c9-py2.5.egg-info/dependency_links.txt
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools-0.6c9-py2.5.egg-info/entry_points.txt
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools-0.6c9-py2.5.egg-info/top_level.txt
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/setuptools-0.6c9-py2.5.egg-info/zip-safe
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/__init__.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/__init__.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/archive_util.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/archive_util.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/cli.exe
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/__init__.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/__init__.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/alias.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/alias.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/bdist_egg.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/bdist_egg.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/bdist_rpm.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/bdist_rpm.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/bdist_wininst.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/bdist_wininst.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/build_ext.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/build_ext.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/build_py.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/build_py.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/develop.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/develop.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/easy_install.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/easy_install.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/egg_info.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/egg_info.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/install.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/install.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/install_egg_info.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/install_egg_info.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/install_lib.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/install_lib.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/install_scripts.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/install_scripts.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/register.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/register.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/rotate.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/rotate.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/saveopts.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/saveopts.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/sdist.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/sdist.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/setopt.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/setopt.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/test.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/test.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/upload.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/upload.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/depends.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/depends.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/dist.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/dist.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/extension.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/extension.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/gui.exe
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/package_index.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/package_index.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/sandbox.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/sandbox.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/tests
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/tests/__init__.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/tests/__init__.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/tests/doctest.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/tests/doctest.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/tests/test_packageindex.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/tests/test_packageindex.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/tests/test_resources.py
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/tests/test_resources.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools-0.6c12dev_r85381-py2.6.egg-info
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools-0.6c12dev_r85381-py2.6.egg-info/PKG-INFO
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools-0.6c12dev_r85381-py2.6.egg-info/SOURCES.txt
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools-0.6c12dev_r85381-py2.6.egg-info/dependency_links.txt
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools-0.6c12dev_r85381-py2.6.egg-info/entry_points.txt
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools-0.6c12dev_r85381-py2.6.egg-info/top_level.txt
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools-0.6c12dev_r85381-py2.6.egg-info/zip-safe
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/tests/setuptools_build_ext.py
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/tests/setuptools_build_ext.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/tests/setuptools_build_ext.pyo
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/tests/setuptools_extension.py
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/tests/setuptools_extension.pyc
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/tests/setuptools_extension.pyo
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/__init__.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/__init__.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/archive_util.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/archive_util.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/cli.exe
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/__init__.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/__init__.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/alias.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/alias.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/bdist_egg.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/bdist_egg.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/bdist_rpm.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/bdist_rpm.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/bdist_wininst.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/bdist_wininst.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/build_ext.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/build_ext.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/build_py.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/build_py.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/develop.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/develop.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/egg_info.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/egg_info.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/install.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/install.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/install_egg_info.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/install_egg_info.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/install_lib.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/install_lib.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/install_scripts.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/install_scripts.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/register.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/register.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/rotate.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/rotate.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/saveopts.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/saveopts.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/sdist.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/sdist.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/setopt.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/setopt.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/test.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/test.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/upload.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/upload.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/depends.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/depends.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/extension.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/extension.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/gui.exe
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/package_index.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/package_index.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/sandbox.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/tests
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/tests/__init__.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/tests/__init__.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/tests/doctest.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/tests/doctest.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/tests/test_packageindex.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/tests/test_packageindex.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/tests/test_resources.py
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/tests/test_resources.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools-0.6c12dev_r85381-py2.7.egg-info
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools-0.6c12dev_r85381-py2.7.egg-info/PKG-INFO
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools-0.6c12dev_r85381-py2.7.egg-info/SOURCES.txt
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools-0.6c12dev_r85381-py2.7.egg-info/dependency_links.txt
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools-0.6c12dev_r85381-py2.7.egg-info/entry_points.txt
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools-0.6c12dev_r85381-py2.7.egg-info/top_level.txt
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools-0.6c12dev_r85381-py2.7.egg-info/zip-safe
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/tests/setuptools_build_ext.py
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/tests/setuptools_build_ext.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/tests/setuptools_build_ext.pyo
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/tests/setuptools_extension.py
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/tests/setuptools_extension.pyc
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/tests/setuptools_extension.pyo
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG <at> python.org
http://mail.python.org/mailman/listinfo/distutils-sig
Robert Park | 15 May 08:33
Picon
Gravatar

Questions about install-prefix in distutils.

Hello,

I found this email from some years ago:

http://mail.python.org/pipermail/distutils-sig/2009-September/013284.html

I find myself now having the same problems. My lazy solution so far
has been to simply install the data files into the same module
directory, and then I just do os.path.join(os.path.dirname(__file__),
'datafile.txt') when I want to access a data file.

This was ok when I only had one data file, but my project is expanding
and I need something more robust and organized. I tried to look at
other projects similar to mine to see how they handled this situation,
and it turns out that none of them use distutils! They are all using
autotools, and while that's a very cumbersome set of tools, it allows
them to pre-process the source files so that the source files know
where they've been installed to in a very straightforward way.

So I'm just wondering, is this build_py override still the best way to
accomplish this? Has this functionality been rolled into distutils in
the last 3 years? How are folks handling this situation now-a-days?

Note that I don't use setuptools so I'm looking for a pure-distutils solution.

Thanks!

--

-- 
http://exolucere.ca
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG <at> python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Rob Healey | 14 May 08:50
Picon

May 12th sprint???

Greetings:

How well do you think that the sprint worked???  Was all was accomplished?

--
Sincerely yours,

Rob G. Healey


_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG <at> python.org
http://mail.python.org/mailman/listinfo/distutils-sig
Benoît Bryon | 13 May 23:44
Gravatar

conventions or best practice to choose package names?

Hi,

I am looking for a convention (i.e. kind of PEP) about package names: 
"how to choose a good package name".
I couldn't find a PEP which gives guidelines about it.

PEP 8 gives some guidelines about "syntax" of package names.
I found articles like "Rules of thumb" section of 
http://www.martinaspeli.net/articles/the-naming-of-things-package-names-and-namespaces. 
But I was looking for something more "official".
And thus, I was thinking of a PEP, or something similar.

Scope:

* we have tools to create and distribute packages. Not covered by this 
thread.
* we have tools to create namespace packages. Not covered by this thread.
* we have conventions about "syntax" of module names in PEP 8. Not 
covered by this thread.
* do we have conventions, or at least guidelines, to choose a name for a 
package?

I'm not to write this guide here (I'm not an expert about it), but, if 
such a PEP or documentation doesn't exist, here are some considerations 
to start:

* The Zen of Python tells "There should be one-- and preferably only one 
--obvious way to do it."
* 
http://www.martinaspeli.net/articles/the-naming-of-things-package-names-and-namespaces 
seems interesting
* maybe 
http://guide.python-distribute.org/specification.html#naming-specification 
is a cool place
* maybe http://docs.python.org/dev/packaging/ is the right place for 
that kind of information
* We should cover both simple packages and namespace packages.
* I guess some teams or communities already have such conventions. As an 
example, does the Plone community have one?
* I feel there are too much de facto standards on Pypi: as an example 
Plone community uses namespaces like "plone.app.theming", whereas Django 
community uses "django-*" pattern, there are also many "pyramid_*" 
packages...
* We should cover public packages published on Pypi, but also public 
packages published on online repositories like Github, and also private 
(personal or corporate) packages.
* I know we cannot migrate existing package names.
* We could recommend something for new packages.

Here are quotes seen in a recent thread about PEP 420 
(http://mail.python.org/pipermail/import-sig/2012-May/000631.html), 
which make me believe a convention would be useful.
Notice that, in fact, I discovered PEP 420 while searching for a PEP 
about "how to choose a good namespace".

Le 13/05/2012 19:25, PJ Eby a écrit :
> Regarding the nesting issue and persuading Django developers to use 
> namespaces, I would note that there isn't any reason for namespaces to 
> be deeply nested in the first place.  By convention, top-level 
> namespace packages should be the name of a project or its sponsoring 
> organization, which means there is rarely a need for deep nesting.  
> Even cases like zope.app and peak.util are rare: usually a project or 
> organization will have only one such "miscellaneous" namespace with 
> lots of separately-distibuted components.
>
> (After all, the main reason to *have* a namespace package is to have 
> separately-distributed subpackages.  So, self-contained packages don't 
> need to have namespaces of their own, almost by definition.)
>
> Anyway, what I've noticed is that when people want to deeply nest 
> namespaces, it's usually because they're trying to share a namespace 
> across organizations, like making a shared 'net.*' namespace.  The 
> idea of namespaces isn't for that kind of categorization, though, it's 
> for *ownership*.  If two developers are fighting over where to put 
> something in a category hierarchy, it's a sign that they need to be 
> working in different namespaces, with each developer staking a claim 
> to a *top-level* package -- like OSAF's osaf.*, Zope Corporation's 
> zc.* (vs. the community project's zope.*), and so on.
>
> When developers use namespaces for project/ownership distinction, the 
> resulting package hierarchies can be pretty much as flat as you like.

If I had to explain it to another Python developer, I wish I could give 
him an hyperlink and say "read and follow the convention".

Le 13/05/2012 20:56, "Martin v. Löwis" a écrit :
> In Java, people apparently want that because they get these deeply
> nested directory hiearchies (org/apache/commons/betwixt/expression).
> It's apparently possible to condense this into
> org.apache.commons.betwixt/expression (which isn't a shorter string,
> but fewer cd commands / explorer clicks / .svn folders).
>
> I predict that people will start using PEP 420 in the reversed-domain 
> fashion also, so we eventually might end up wanting something like 
> this for Python.

Could we anticipate namespace usage? At least for some "simple" things 
that already are de facto standards.
As an example, I guess we could state about "reasonable maximum 
namespace depth", because on Pypi there is not many packages with more 
than 3 levels.

Regards,
Benoit

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG <at> python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Robert Park | 12 May 10:58
Picon
Gravatar

Need some advice on extending install_data

So, I'm using distutils with some success lately, and I've borrowed
some code that extends install_data to compile .po (translation) files
into .mo files to be used by the system to display the translated
strings. It looks like this:

https://github.com/robru/gottengeography/blob/master/setup.py

It seems fairly straightforward to me and there's only a tiny amount
of magic involved.

However, upon testing this, I've discovered this behavior:

1. When running `setup.py install`, the mo files are correctly
compiled and installed to the system.

2. When running `setup.py bdist`, the resulting tarball will correctly
compile and include the mo files for distribution.

3. When running `setup.py bdist_rpm`, the resulting RPM file does not
contain any trace of any .po or .mo files.

I'm not sure why bdist_rpm is the odd man out here, but it seems like
I'm overlooking something simple. Unfortunately the API reference
seems a little light on details:

http://docs.python.org/distutils/apiref.html#module-distutils.command.bdist

So I'm not entirely clear on how I should go about overriding
bdist_rpm to achieve the same thing as is done by overriding
install_data. At this point I am reviewing the distutils source code
directly but it's been less instructive than I'd hoped.

Any ideas?

Thanks.

--

-- 
http://exolucere.ca
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG <at> python.org
http://mail.python.org/mailman/listinfo/distutils-sig


Gmane