diff options
Diffstat (limited to 'pavement.py')
-rw-r--r-- | pavement.py | 57 |
1 files changed, 48 insertions, 9 deletions
diff --git a/pavement.py b/pavement.py index b7ece2bd4..92fbef573 100644 --- a/pavement.py +++ b/pavement.py @@ -22,8 +22,8 @@ if sys.version_info <= (2, 5): setup( name="pyload", version="0.4.9", - description='description', - long_description='', + description='Fast, lightweight and full featured download manager.', + long_description=open(PROJECT_DIR / "README").read(), keywords='', url="http://pyload.org", download_url='http://pyload.org/download', @@ -35,7 +35,7 @@ setup( #package_data=find_package_data(), #data_files=[], include_package_data=True, - exclude_package_data={'pyload': ['docs*', 'scripts*']}, + exclude_package_data={'pyload': ['docs*', 'scripts*']}, #exluced from build but not from sdist #leaving out thrift 0.8.0 since its not statisfiable install_requires=['BeautifulSoup>=3.2, <3.3', 'jinja2', 'pycurl', 'Beaker', 'bottle >= 0.9.0'] + extradeps, extras_require={ @@ -47,12 +47,20 @@ setup( #setup_requires=["setuptools_hg"], entry_points={ 'console_scripts': [ - 'pyLoadCore = pyLoadCore:main_func', - 'pyLoadCli = pyLoadCli:some_func', ], - 'gui_scripts': [ - 'pyLoadGui = my_package_gui.start_func', - ]}, - zip_safe=False + 'pyLoadCore = pyLoadCore:main', + 'pyLoadCli = pyLoadCli:main' + ]}, + zip_safe=False, + classifiers=[ + "Development Status :: 5 - Production/Stable", + "Topic :: Internet :: WWW/HTTP", + "Environment :: Console", + "Environment :: Web Environment", + "Intended Audience :: End Users/Desktop", + "License :: OSI Approved :: GNU General Public License (GPL)", + "Operating System :: OS Independent", + "Programming Language :: Python :: 2" + ] ) options( @@ -68,6 +76,11 @@ options( thrift=Bunch( path="../thrift/trunk/compiler/cpp/thrift", gen="" + ), + virtualenv=Bunch( + dir="env", + python="python2", + virtual="virtualenv2", ) ) @@ -215,6 +228,32 @@ def generate_locale(): @task +def virtualenv(options): + """Setup virtual environment""" + if path(options.dir).exists(): + return + + call([options.virtual, "--no-site-packages", "--python", options.python, options.dir]) + print "$ source %s/bin/activate" % options.dir + + +@task +def clean_env(): + """Deletes the virtual environment""" + env = path(options.virtualenv.dir) + if env.exists(): + env.rmtree() + + +@task +@needs('generate_setup', 'minilib', 'get_source', 'virtualenv') +def env_install(): + """Install pyLoad into the virtualenv""" + venv = options.virtualenv + call([path(venv.dir) / "bin" / "easy_install", "."]) + + +@task def clean(): """Cleans build directories""" path("build").rmtree() |