All pastes #1732063 Raw Edit

broken setup.py

public text v1 · immutable
#1732063 ·published 2009-12-30 18:18 UTC
rendered paste body
setup.py:
=========
#!/usr/bin/env python
from distutils.core import setup

setup(name='foo',
	version='1.0',
	py_modules=['foo']
	)

==========

ls -l *
-rw-r--r-- 1 tim tim   9 2009-12-30 17:30 MANIFEST
-rw-r--r-- 1 tim tim 113 2009-12-30 17:34 setup.py
-rw-r--r-- 1 tim tim 110 2009-12-30 17:34 setup.py~

dist:
total 4
-rw-r--r-- 1 tim tim 379 2009-12-30 18:00 foo-1.0.tar.gz

foo:
total 12
-rw-r--r-- 1 tim tim  23 2009-12-30 17:35 bar.py
-rw-r--r-- 1 tim tim   0 2009-12-30 17:32 bar.py~
-rw-r--r-- 1 tim tim 209 2009-12-30 17:37 bar.pyc
-rw-r--r-- 1 tim tim   0 2009-12-30 17:31 __init__.py
-rw-r--r-- 1 tim tim 102 2009-12-30 17:37 __init__.pyc

===========
bar.py

def baz():
	print 'hi'

==========

python setup.py sdist

running sdist
warning: sdist: missing required meta-data: url
warning: sdist: missing meta-data: either (author and author_email) or (maintainer and maintainer_email) must be supplied
reading manifest file 'MANIFEST'
creating foo-1.0
making hard links in foo-1.0...
hard linking setup.py -> foo-1.0
tar -cf dist/foo-1.0.tar foo-1.0
gzip -f9 dist/foo-1.0.tar
removing 'foo-1.0' (and everything under it)

==========

tar -tzf dist/foo-1.0.tar.gz 

foo-1.0/
foo-1.0/PKG-INFO
foo-1.0/setup.py

========