1
1
#!/usr/bin/env python3
2
- """Script for building 'manylinux' wheels for libsass.
2
+ """Script for building 'manylinux' & 'musllinux' wheels for libsass.
3
3
4
4
Run me after putting the source distribution on pypi.
5
5
@@ -13,25 +13,25 @@ import tempfile
13
13
14
14
def check_call (* cmd ):
15
15
print (
16
- 'build-manylinux -wheels>> ' +
16
+ 'build-linux -wheels>> ' +
17
17
' ' .join (pipes .quote (part ) for part in cmd ),
18
18
)
19
19
subprocess .check_call (cmd )
20
20
21
21
22
22
def main ():
23
23
os .makedirs ('dist' , exist_ok = True )
24
- for python in ('cp27-cp27mu ' , 'cp36-cp36m ' ):
24
+ for platform in ('manylinux1 ' , 'musllinux_1_1 ' ):
25
25
with tempfile .TemporaryDirectory () as work :
26
- pip = f '/opt/python/{ python } /bin/pip'
26
+ pip = '/opt/python/cp36-cp36m /bin/pip'
27
27
check_call (
28
28
'docker' , 'run' , '-ti' ,
29
29
# Use this so the files are not owned by root
30
30
'--user' , f'{ os .getuid ()} :{ os .getgid ()} ' ,
31
31
# We'll do building in /work and copy results to /dist
32
32
'-v' , f'{ work } :/work:rw' ,
33
33
'-v' , '{}:/dist:rw' .format (os .path .abspath ('dist' )),
34
- 'quay.io/pypa/manylinux1_x86_64 :latest' ,
34
+ f 'quay.io/pypa/{ platform } _x86_64 :latest' ,
35
35
'bash' , '-exc' ,
36
36
'{} wheel --verbose --wheel-dir /work --no-deps libsass && '
37
37
'auditwheel repair --wheel-dir /dist /work/*.whl' .format (pip ),
0 commit comments