-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·39 lines (33 loc) · 1.01 KB
/
setup.py
File metadata and controls
executable file
·39 lines (33 loc) · 1.01 KB
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
#!/usr/bin/env python
from setuptools import setup,Command,os
from setuptools.command import sdist
# Disable setup's overly-eager file finding.
sdist.finders[:]
def read(filename):
return open(os.path.join(os.path.dirname(__file__), filename)).read()
class veryclean(Command):
description = 'Delete any non-source file.'
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import os
os.system('rm -rf *.html')
os.system('rm -rf build')
os.system('rm -rf dist')
os.system('rm -rf *.egg-info')
setup(
name = 'gxref',
cmdclass = {'veryclean':veryclean},
version = '1.1',
description = 'gschem cross-referencer gEDA/pcb.',
author = 'David B. Curtis',
author_email = 'davecurtis@sonic.net',
url = 'http://github.com/dbc/gxref',
long_description = '\n'.join([read('README.rst'),read('NEWS.rst')]),
license='GPL',
platforms=['any'],
scripts=['bin/gxref'],
)