-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
45 lines (34 loc) · 1014 Bytes
/
setup.py
File metadata and controls
45 lines (34 loc) · 1014 Bytes
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
import sys
try:
import pipcl
except ImportError:
# This only happens if we are run directly without use of pyproject.toml,
# e.g. setup.py sdist.
sys.path.insert(0, 'src')
import pipcl
def build():
return [
('src/pipcl.py', 'pipcl/__init__.py'),
('src/wdev.py', 'pipcl/wdev.py'),
]
def sdist():
return pipcl.git_items('.')
p = pipcl.Package(
'pipcl',
version = '5',
pure = True,
description='README.rst',
summary='Python packaging operations, including PEP-517 support, for use by a setup.py script.',
author='Artifex',
author_email='julian.smith@artifex.com',
license='GNU AFFERO GPL 3.0',
project_url=[
'homepage, https://github.com/ArtifexSoftware/pipcl',
],
fn_build = build,
fn_sdist = sdist,
)
build_wheel = p.build_wheel
build_sdist = p.build_sdist
if __name__ == '__main__':
p.handle_argv(sys.argv)