| 1 | #!/usr/bin/env python |
|---|
| 2 | # -*- coding: utf-8 -*- |
|---|
| 3 | # vim: sw=4 ts=4 fenc=utf-8 |
|---|
| 4 | # ============================================================================= |
|---|
| 5 | # $Id: setup.py 83 2006-11-21 20:45:51Z s0undt3ch $ |
|---|
| 6 | # ============================================================================= |
|---|
| 7 | # $URL: http://ispmanccp.ufsoft.org/svn/branches/PythonPerl/setup.py $ |
|---|
| 8 | # $LastChangedDate: 2006-11-21 20:45:51 +0000 (Tue, 21 Nov 2006) $ |
|---|
| 9 | # $Rev: 83 $ |
|---|
| 10 | # $LastChangedBy: s0undt3ch $ |
|---|
| 11 | # ============================================================================= |
|---|
| 12 | # Copyright (C) 2006 Ufsoft.org - Pedro Algarvio <ufs@ufsoft.org> |
|---|
| 13 | # |
|---|
| 14 | # Please view LICENSE for additional licensing information. |
|---|
| 15 | # ============================================================================= |
|---|
| 16 | |
|---|
| 17 | from setuptools import setup, find_packages |
|---|
| 18 | |
|---|
| 19 | try: |
|---|
| 20 | # Let's find out if we have python-ldap |
|---|
| 21 | import ldap |
|---|
| 22 | except ImportError: |
|---|
| 23 | # We don't have python-ldap, exit nicely |
|---|
| 24 | from sys import exit |
|---|
| 25 | print |
|---|
| 26 | print "You must have the python-ldap module instaled." |
|---|
| 27 | print "Most distributions already provide it, just install it." |
|---|
| 28 | print "As an alternative, you can get it from:" |
|---|
| 29 | print " http://python-ldap.sourceforge.net/" |
|---|
| 30 | print |
|---|
| 31 | exit(1) |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | try: |
|---|
| 35 | # Let's find out if we have PyPerl installed |
|---|
| 36 | import perl |
|---|
| 37 | except ImportError: |
|---|
| 38 | # We don't have PyPerl, so, install it |
|---|
| 39 | import os, subprocess |
|---|
| 40 | cur_dir = os.path.dirname(os.path.abspath(__file__)) |
|---|
| 41 | os.chdir(os.path.join(cur_dir, 'extra-packages', 'pyperl-1.0.1d')) |
|---|
| 42 | retcode = subprocess.call(['python', './setup.py', 'install']) |
|---|
| 43 | os.chdir(cur_dir) |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | # We now resume normal setup operation |
|---|
| 48 | |
|---|
| 49 | |
|---|
| 50 | VERSION = "0.0.1alpha2" |
|---|
| 51 | |
|---|
| 52 | readme_file = open('README.txt') |
|---|
| 53 | |
|---|
| 54 | setup( |
|---|
| 55 | name = 'ISPManCCP', |
|---|
| 56 | version = VERSION, |
|---|
| 57 | description = "Customer Control Pannel for ISPMan", |
|---|
| 58 | long_description = readme_file.read(), |
|---|
| 59 | license = 'BSD', |
|---|
| 60 | platforms = "Anywhere you've got ISPMan working.", |
|---|
| 61 | author = "Pedro Algarvio", |
|---|
| 62 | author_email = "ufs@ufsoft.org", |
|---|
| 63 | url = "http://ccp.ufsoft.org/", |
|---|
| 64 | #download_url = "http://ccp.ufsoft.org/download/%s/" % VERSION, |
|---|
| 65 | zip_safe = False, |
|---|
| 66 | install_requires = [ |
|---|
| 67 | "Pylons>=0.9.3", |
|---|
| 68 | "Genshi>=0.3.4", |
|---|
| 69 | "formencode>=0.6", |
|---|
| 70 | ], |
|---|
| 71 | packages = find_packages(), |
|---|
| 72 | include_package_data = True, |
|---|
| 73 | test_suite = 'nose.collector', |
|---|
| 74 | package_data = {'ispmanccp': ['i18n/*/LC_MESSAGES/*.mo']}, |
|---|
| 75 | entry_points = """ |
|---|
| 76 | [paste.app_factory] |
|---|
| 77 | main=ispmanccp:make_app |
|---|
| 78 | [paste.app_install] |
|---|
| 79 | main=paste.script.appinstall:Installer |
|---|
| 80 | """, |
|---|
| 81 | classifiers = [ |
|---|
| 82 | 'Development Status :: 3 - Alpha', |
|---|
| 83 | 'Environment :: Web Environment', |
|---|
| 84 | 'Intended Audience :: Customer Service', |
|---|
| 85 | 'License :: OSI Approved :: BSD License', |
|---|
| 86 | 'Natural Language :: English', |
|---|
| 87 | 'Natural Language :: Portuguese', |
|---|
| 88 | 'Programming Language :: Python', |
|---|
| 89 | 'Programming Language :: Perl', |
|---|
| 90 | 'Topic :: Database :: Front-Ends', |
|---|
| 91 | 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application', |
|---|
| 92 | 'Topic :: Utilities', |
|---|
| 93 | ], |
|---|
| 94 | keywords = "ISPMan PyPerl Python Customer Control Pannel" |
|---|
| 95 | |
|---|
| 96 | ) |
|---|