This repository has been archived by the owner on Feb 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
/
setup.py
53 lines (43 loc) · 1.76 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
from __future__ import print_function
import os
from setuptools import setup, Command
class CleanSource(Command):
"""
Removes orphaned pyc/pyo files from the sources.
"""
description = 'clean orphaned pyc/pyo files from sources'
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
for root_path, dir_names, file_names in os.walk('biggus'):
for file_name in file_names:
if file_name.endswith('pyc') or file_name.endswith('pyo'):
compiled_path = os.path.join(root_path, file_name)
source_path = compiled_path[:-1]
if not os.path.exists(source_path):
print('Cleaning', compiled_path)
os.remove(compiled_path)
setup(
name='Biggus',
version='0.15.0',
url='https://github.com/SciTools/biggus',
author='Richard Hattersley',
author_email='[email protected]',
packages=['biggus', 'biggus.tests', 'biggus.tests.integration',
'biggus.tests.unit', 'biggus.tests.unit.init'],
classifiers=['License :: OSI Approved :: '
'GNU Lesser General Public License v3 (LGPLv3)',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5'],
description='Virtual large arrays and lazy evaluation',
long_description=open('README.rst').read(),
test_suite='biggus.tests',
cmdclass={'clean_source': CleanSource}
)