X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=blobdiff_plain;f=setup.py;h=131641d3778ed96b6e8c6cded003ea1d6ddc9633;hp=52d6c52d7d5407d032255a63b34b32df6783e0bb;hb=1b817aa5ea45f80ef6c21152593a9e63d5ae9080;hpb=dc882b08efa656eb881ffcd266846fd6dcef131d diff --git a/setup.py b/setup.py index 52d6c52..131641d 100755 --- a/setup.py +++ b/setup.py @@ -1,60 +1,17 @@ -#!/usr/bin/env python +#!/usr/bin/python -import os import sys +from distutils.core import setup -try: - import distutils.core - import distutils.command.build_ext -except ImportError: - raise SystemExit, """\ -You don't have the python development modules installed. +setup( + name = "apt-p2p", + version = "0.1.5", + author = "Cameron Dale", + author_email = "", + url = "http://www.camrdale.org/apt-p2p.html", + license = "GPL", -If you have Debian you can install it by running - apt-get install python-dev + packages = ["apt_p2p", "apt_p2p_Khashmir"], -If you have RedHat and know how to install this from an RPM please -email us so we can put instructions here. -""" - -try: - import twisted -except ImportError: - raise SystemExit, """\ -You don't have Twisted installed. - -Twisted can be downloaded from - http://twistedmatrix.com/products/download - -Anything later that version 1.0.3 should work -""" - -try: - import sqlite -except ImportError: - raise SystemExit, """\ -You don't have PySQLite installed. - -PySQLite can be downloaded from - http://sourceforge.net/project/showfiles.php?group_id=54058&release_id=139482 -""" - -setup_args = { - 'name': 'khashmir', - 'author': 'Andrew Loewenstern', - 'author_email': 'burris@users.sourceforge.net', - 'licence': 'MIT', - 'package_dir': {'khashmir': '.'}, - 'packages': [ - 'khashmir', - ], -} - -if hasattr(distutils.dist.DistributionMetadata, 'get_keywords'): - setup_args['keywords'] = "internet tcp p2p" - -if hasattr(distutils.dist.DistributionMetadata, 'get_platforms'): - setup_args['platforms'] = "win32 posix" - -if __name__ == '__main__': - apply(distutils.core.setup, (), setup_args) + scripts = ['apt-p2p.py'] + )