paver sdist

7 views
Skip to first unread message

percious

unread,
Oct 15, 2008, 3:04:12 PM10/15/08
to paver
So, I made a staticxml sdist that just installs xml in a static manner
into a venv.

The problem is that I tried to create an sdist, and paver is not
copying minilib or pavement.py into the distributable package.

Should I force this to happen in some way, or am I doing something
wrong?

-chris

Kevin Dangoor

unread,
Oct 15, 2008, 3:08:18 PM10/15/08
to pa...@googlegroups.com

Are you using svn? If so, the pavement.py should be included. The
problem is that Paver doesn't do any monkeying with the MANIFEST
itself. It probably should.

You should create a MANIFEST.in to catch anything that needs to be
included but is not. Here's Paver's:

include metainfo.py
include LICENSE.txt
include scripts/*
recursive-include paver/docs *
include paver-minilib.zip
include setup.py
recursive-include paver/tests *


Kevin

percious

unread,
Oct 15, 2008, 3:17:39 PM10/15/08
to paver
Great Kevin,

In fact, this project is not yet in svn, and I am uncertain where to
put it, perhaps repoze... But you definitely fixed my problem.

thanks,
chris

percious

unread,
Oct 20, 2008, 12:52:41 PM10/20/08
to paver
Ok, so I got staticlxml working for anyone that wants it.

for some reason, the package will not easy_install directly from pypi.

To install:

activate your virtualenv!

curl http://pypi.python.org/packages/source/s/staticlxml/staticlxml-0.1.0.tar.gz
| tar xfz -
cd staticlxml-0.1.0
python setup.py install

...
a whole bunch of stuff will compile
...

python
>>> import lxml.etree

...
happiness.


Kevin, if you could take a look at why easy_install staticlxml does
not work, I would be very apprciative.

cheers.
-chris

Kevin Dangoor

unread,
Oct 20, 2008, 9:31:38 PM10/20/08
to pa...@googlegroups.com
On Oct 20, 2008, at 12:52 PM, percious wrote:

>
> Ok, so I got staticlxml working for anyone that wants it.

That's a beautiful thing. (Truth be told, though, lxml is not hard to
install now if you have MacPorts. This is just much easier and doesn't
require MacPorts)

> Kevin, if you could take a look at why easy_install staticlxml does
> not work, I would be very apprciative.

I am totally slammed right now. I would be interested in taking a
look, but I think I'm going to be running at full speed up until
PyWorks.

Kevin

percious

unread,
Oct 23, 2008, 11:08:31 PM10/23/08
to paver
staticlxml no longer requires a virtualenv, although I highly
recommend using virtualenv. (keep that global python clean!)

davisagli

unread,
Nov 8, 2008, 7:29:18 PM11/8/08
to paver
On Oct 23, 7:08 pm, percious <ch...@percious.com> wrote:
> staticlxmlno longer requires a virtualenv, although I highly
> recommend using virtualenv.  (keep that global python clean!)

I am unable to install staticlxml using easy_install.

1. First error:

File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c9-
py2.4.egg/setuptools/sandbox.py", line 29, in <lambda>
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 6, in ?
ImportError: No module named paver.command

I worked around this by easy_installing paver.

2. Second error:

Searching for staticlxml
Reading http://pypi.python.org/simple/staticlxml/
Reading http://www.percious.com
Best match: staticlxml 0.1.2
Downloading http://pypi.python.org/packages/source/s/staticlxml/staticlxml-0.1.2.tar.gz#md5=77275ce07804ed078f94b493b18267d8
Processing staticlxml-0.1.2.tar.gz
Running staticlxml-0.1.2/setup.py -q bdist_egg --dist-dir /tmp/
easy_install-69FBgc/staticlxml-0.1.2/egg-dist-tmp-vehHIU
error: Setup script exited with usage: setup.py [options]
requirement_or_url ...
or: setup.py --help

error: option --dist-dir not recognized

What's going on?

thanks,
David
Reply all
Reply to author
Forward
0 new messages