-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmake.py
More file actions
executable file
·38 lines (26 loc) · 767 Bytes
/
make.py
File metadata and controls
executable file
·38 lines (26 loc) · 767 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
#!/usr/bin/python3
# PYTHON_ARGCOMPLETE_OK
import os
import py_compile
import sys
sys.path.insert(0, 'src')
from pymake3 import *
CONF={ 'srcdir': 'src',
'builddir': 'src/build',
'distdir': 'src/dist',
'egginfodir': 'src/pymake3.egg-info',
'target': 'pymake3' }
@default_target(conf=CONF, desc="builds the pymake3 egg package")
def build(conf):
os.chdir(conf.srcdir)
run(['python3', 'setup.py', 'bdist_wheel', 'sdist'])
@target(conf=CONF)
def clean(conf):
for s in [conf.builddir, conf.distdir, conf.egginfodir]:
delete_dir(s)
for s in find_files(conf.srcdir, '__pycache__'):
delete_dir(s)
@target(conf=CONF)
def upload(conf):
run('twine upload %s/*' % conf.distdir, mode='shell')
pymake3()