-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·41 lines (31 loc) · 1.42 KB
/
setup.py
File metadata and controls
executable file
·41 lines (31 loc) · 1.42 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
38
39
40
41
#!/usr/bin/env python3
from distutils.core import setup, Extension
from distutils.command.build import build
VERSION='0.4'
class build_and_make_exec(build):
def run(self):
from distutils.ccompiler import new_compiler
comp = new_compiler()
comp.compile(['pfa/pfa.c'], extra_preargs=['-Wall',
'-fno-omit-frame-pointer', '-Os'])
comp.link_executable(['pfa/pfa.o'], 'pfa/pfa')
comp.link_executable(['pfa/pfa.o'], 'pfa/pfai')
build.run(self)
setup(name='pfa', packages=['pfa',], version=VERSION,
author = "M Stoeckl",
author_email = "mstoeckl@u.rochester.edu",
maintainer = "M Stoeckl",
maintainer_email = "mstoeckl@u.rochester.edu",
description = "Very fast and consistent (if ugly) autoformatting for Python",
url = "https://github.com/mstoeckl/python-fast-autoformat",
download_url = "https://github.com/mstoeckl/python-fast-autoformat/archive/"+VERSION+".tar.gz",
long_description = open("README.md").read(),
keywords = ['python', 'autoformat', 'c', 'fast', 'format', 'formatter'],
cmdclass = {'build':build_and_make_exec},
data_files = [('bin/', ['pfa/pfa', 'pfa/pfai'])],
classifiers = ["License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Programming Language :: C",
"Programming Language :: Python :: 3",
"Operating System :: POSIX :: Linux", "Topic :: Utilities"],
)