Closed kgpai closed 2 years ago
For some reason it's using the Mac default Python? (2.7). I guess pybind somehow doesn't put the Python version provided by conda
Note conda is only used to set up a Python environment, and on GitHub Actions we can use the Python provided by actions/setup-python@v2 (e.g. https://github.com/pytorch/data/blob/71a16a3b63966af0f60af74d3044b3c963cfc5fb/.github/workflows/_build_test_upload.yml#L71-L74) , so perhaps we can modify this method to skip when PYTHON_VERSION is not provided: https://github.com/facebookresearch/torcharrow/blob/b00f2875abf7787fdc42546b89236800ad56f167/packaging/build_wheel.sh#L45-L50
actions/setup-python@v2
PYTHON_VERSION
e.g. change it to
if [[ -n "$PYTHON_VERSION" ]]; then eval "$(conda shell.bash hook)" ... fi
So you don't need conda when building wheel? (e.g. just call packaging/build_wheel.sh)
packaging/build_wheel.sh
@kgpai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
For some reason it's using the Mac default Python? (2.7). I guess pybind somehow doesn't put the Python version provided by conda
Note conda is only used to set up a Python environment, and on GitHub Actions we can use the Python provided by
actions/setup-python@v2
(e.g. https://github.com/pytorch/data/blob/71a16a3b63966af0f60af74d3044b3c963cfc5fb/.github/workflows/_build_test_upload.yml#L71-L74) , so perhaps we can modify this method to skip whenPYTHON_VERSION
is not provided: https://github.com/facebookresearch/torcharrow/blob/b00f2875abf7787fdc42546b89236800ad56f167/packaging/build_wheel.sh#L45-L50e.g. change it to
So you don't need conda when building wheel? (e.g. just call
packaging/build_wheel.sh
)