2018-12-20 16:01:15 -05:00
Author: Thomas Ferreira de Lima
email: thomas@tlima .me
2018-12-18 12:11:26 -05:00
2018-12-20 16:01:15 -05:00
This folder contains scripts to be run inside docker images. See instructions on how to test this yourself in ci-scripts/docker/development_notes.
2018-12-18 12:11:26 -05:00
2018-12-20 16:01:15 -05:00
## docker_build.sh
2018-12-18 15:18:33 -05:00
2018-12-20 16:01:15 -05:00
We need two environment variables to get going:
2018-12-18 15:18:33 -05:00
```bash
2018-12-20 16:01:15 -05:00
DOCKER_IMAGE = "quay.io/pypa/manylinux1_x86_64"
PY_VERSION = "cp37-cp37m"
2018-12-18 15:18:33 -05:00
```
2018-12-18 15:58:33 -05:00
2018-12-20 16:01:15 -05:00
The script must be run inside an image pulled from $DOCKER_IMAGE and with klayout's git repo cloned in /io. Inside the git clone folder, run:
2018-12-18 17:53:52 -05:00
```bash
2018-12-20 16:01:15 -05:00
docker run --rm -e DOCKER_IMAGE -e PY_VERSION -v ` pwd ` :/io $DOCKER_IMAGE $PRE_CMD "/io/ci-scripts/docker/docker_build.sh" ;
# $PRE_CMD is empty for now (useless currently).
2018-12-18 17:53:52 -05:00
```
2018-12-20 16:01:15 -05:00
This command will generate a wheel and place it in `wheelhouse/klayout-*manylinux1*.whl` . This is the wheel that needs to be uploaded to PyPI via twine. See ci-scripts/twine/README.md.