RalfG / python-wheels-manylinux-build

GitHub Action to build Python manylinux wheels
https://github.com/marketplace/actions/python-wheels-manylinux-build
Apache License 2.0
92 stars 44 forks source link

Help How to register the path to setup.py #17

Closed kotbegemot closed 4 years ago

kotbegemot commented 4 years ago

I'm trying to pack my project in wheels. The recipe for the wheel is in a separate repository.

  1. How to register the path to the setup.py in workflow ?
  2. How to download the project source code and put it next to the setup.py?
RalfG commented 4 years ago

I think one of the problems you may have it that the Checkout action deletes everything in the directory in which it will checkout the second repository, unless you specify a path. You can try something similar to this solution: https://github.com/actions/checkout/issues/33#issuecomment-595988890

Next, in the python-wheels-manylinux-build action, you can specify the same path with the option package-path. Then the only caveat is that the setup.py script should know where to find the project (which will be either the parent directory of setup.py, or a subfolder of that parent directory, if path was also specified in the first actions/checkout).