Skip to content

Commit 3679ff2

Browse files
Add support for musl wheels
1 parent 5e9e65a commit 3679ff2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Here's a brief check list for releasing a new version:
5454
CI build takes a while. These wheels are not automatically uploaded,
5555
but there's ``./bin/download-windows-wheels`` script that downloads built
5656
wheels. Then upload them with ``twine``.
57-
- Run ``./bin/build-manylinux-wheels`` to build linux wheels and upload them to
57+
- Run ``./bin/build-linux-wheels`` to build linux wheels and upload them to
5858
PyPI (takes ~5 minutes).
5959
- The `docs website`__ also has to be updated.
6060
It's currently a static website deployed on GitHub Pages.

bin/build-manylinux-wheels renamed to bin/build-linux-wheels

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
"""Script for building 'manylinux' wheels for libsass.
2+
"""Script for building 'manylinux' & 'musllinux' wheels for libsass.
33
44
Run me after putting the source distribution on pypi.
55
@@ -13,25 +13,25 @@ import tempfile
1313

1414
def check_call(*cmd):
1515
print(
16-
'build-manylinux-wheels>> ' +
16+
'build-linux-wheels>> ' +
1717
' '.join(pipes.quote(part) for part in cmd),
1818
)
1919
subprocess.check_call(cmd)
2020

2121

2222
def main():
2323
os.makedirs('dist', exist_ok=True)
24-
for python in ('cp27-cp27mu', 'cp36-cp36m'):
24+
for platform in ('manylinux1', 'musllinux_1_1'):
2525
with tempfile.TemporaryDirectory() as work:
26-
pip = f'/opt/python/{python}/bin/pip'
26+
pip = '/opt/python/cp36-cp36m/bin/pip'
2727
check_call(
2828
'docker', 'run', '-ti',
2929
# Use this so the files are not owned by root
3030
'--user', f'{os.getuid()}:{os.getgid()}',
3131
# We'll do building in /work and copy results to /dist
3232
'-v', f'{work}:/work:rw',
3333
'-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',
3535
'bash', '-exc',
3636
'{} wheel --verbose --wheel-dir /work --no-deps libsass && '
3737
'auditwheel repair --wheel-dir /dist /work/*.whl'.format(pip),

0 commit comments

Comments
 (0)