-
Notifications
You must be signed in to change notification settings - Fork 106
/
setup.py
99 lines (82 loc) · 2.57 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/usr/bin/env python
from distribute_setup import use_setuptools
use_setuptools()
PROJECT = 'virtualenvwrapper-win'
AUTHOR = 'David Marble'
EMAIL = 'davidmarble@gmail.com'
DESCRIPTION = ('Port of Doug Hellmann\'s virtualenvwrapper '
'to Windows batch scripts')
VERSION = '1.2.7'
PROJECT_URL = 'https://github.com/davidmarble/%s/' % (PROJECT)
scripts_loc = 'scripts/'
scripts = [
'add2virtualenv.bat',
'cd-.bat',
'cdproject.bat',
'cdsitepackages.bat',
'cdvirtualenv.bat',
'folder_delete.bat',
'lssitepackages.bat',
'lsvirtualenv.bat',
'mkproject.bat',
'mkvirtualenv.bat',
'rmvirtualenv.bat',
'setprojectdir.bat',
'toggleglobalsitepackages.bat',
'whereis.bat',
'workon.bat',
'virtualenvwrapper.bat',
'vwenv.bat',
]
import os
import sys
import shutil
import codecs
from setuptools import setup
from setuptools.command.install import install as _setuptools_install
long_description = ''
try:
long_description = open('README.rst', 'rt').read()
except IOError:
pass
try:
long_description += '\n' + open('CHANGELOG.rst', 'rt').read()
except IOError:
pass
PYTHONHOME = sys.exec_prefix
setup(
name=PROJECT,
version=VERSION,
description=DESCRIPTION,
long_description=long_description,
long_description_content_type='text/x-rst',
author=AUTHOR,
author_email=EMAIL,
url=PROJECT_URL,
license="BSD 3-clause",
keywords="setuptools deployment installation distutils virtualenv virtualenvwrapper",
platforms=['WIN32', 'WIN64', ],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Win32 (MS Windows)',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.4',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Intended Audience :: Developers',
'Environment :: Console', ],
scripts=[scripts_loc + script for script in scripts],
install_requires=['virtualenv', ],
# extras
# pywin==0.2
zip_safe=False,
)