Hi,
It's important to make python packages easily installable for users. I saw one
comment on the wiki about this and I certainly want to be able to pip install
or easy_install this package. It's a real pain when you see you have to
download a file manually and put it somewhere manually.
Attached is a setup.py file that works with standard python packaging so it can
be on pypi with easy installation.
Simply create a ~/.pypirc file with:
[distutils]
index-servers =
pypi
[pypi]
username:yourusername
password:yourpassword
Then in your project dir you can register the pyshp project which only ever
needs to be done once with:
python setup.py register
From then on when creating a new release you can create a source tarball with:
python setup.py sdist
And once you are happy you can upload with:
python setup.py sdist upload
I tested all these and they work which made pyshp installable with:
pip install pyshp
easy_install pyshp
(I have since deleted the package that I registered and uploaded for testing).
You can also use develop mode when working on the project with:
python setup.py develop
Original issue reported on code.google.com by memedo...@gmail.com on 31 Aug 2011 at 5:08
Original issue reported on code.google.com by
memedo...@gmail.com
on 31 Aug 2011 at 5:08Attachments: