Added check in setup.py to ensure that python version is >=2.5. Added direct download to dependency links for pyusb as otherwise easy_install picks the windows version on linux. This will break if a newer version of pyusb is released. Version bump to a2. See #5

This commit is contained in:
Kovid Goyal 2006-12-17 02:26:21 +00:00
parent 9e51abad95
commit 5248fbbbeb
2 changed files with 10 additions and 3 deletions

View File

@ -32,7 +32,7 @@ the following rule in C{/etc/udev/rules.d/90-local.rules} ::
BUS=="usb", SYSFS{idProduct}=="029b", SYSFS{idVendor}=="054c", MODE="660", GROUP="plugdev"
You may have to adjust the GROUP and the location of the rules file to suit your distribution.
"""
__version__ = "0.3.0a1"
__version__ = "0.3.0a2"
__docformat__ = "epytext"
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
TEMPORARY_FILENAME_TEMPLATE = "libprs500_"+__version__+"_temp"

View File

@ -12,7 +12,7 @@
## You should have received a copy of the GNU General Public License along
## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#!/usr/bin/env python
#!/usr/bin/env python2.5
import ez_setup
ez_setup.use_setuptools()
@ -26,9 +26,15 @@ ez_setup.use_setuptools()
# easy_install(["-f", "http://www.pythonware.com/products/pil/", "Imaging"])
#except: pass
import sys
from setuptools import setup, find_packages
from libprs500 import __version__ as VERSION
if sys.hexversion < 0x2050000:
print >> sys.stderr, "You must use python >= 2.5 Try invoking this script as python2.5 setup.py."
print >> sys.stderr, "If you are using easy_install, try easy_install-2.5"
sys.exit(1)
setup(
name='libprs500',
packages = find_packages(),
@ -43,7 +49,8 @@ setup(
zip_safe = True,
install_requires=["pyusb>=0.3.5","pyxml>=0.8.4"],
dependency_links=["http://sourceforge.net/project/showfiles.php?group_id=145185",
"http://sourceforge.net/project/showfiles.php?group_id=6473",
"http://sourceforge.net/project/showfiles.php?group_id=6473",
"http://easynews.dl.sourceforge.net/sourceforge/pyusb/pyusb-0.3.5.tar.gz",
],
description='Library to interface with the Sony Portable Reader 500 over USB. Also has a GUI with library management features.',
long_description =