1234567891011121314151617 |
- #!/bin/bash
- set -e
- if [[ ! -f setup.py ]]; then
- >&2 echo "Cannot find setup.py, make sure you have mounted your source dir to /workspace"
- exit 1
- fi
- mkdir -p ./node_modules
- echo "Populating node_modules cache..."
- cp -ur /js/node_modules/* ./node_modules/
- export YARN_CACHE_FOLDER="$(mktemp -d)"
- python setup.py bdist_wheel --build-number 0
- rm -r "$YARN_CACHE_FOLDER"
- cp requirements-frozen.txt dist/
|