Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Fix snap package building (#1082) Currently the snap package no longer contains the main Python package of OCRmyPDF due to the fact that [Snapcraft doesn't run the `pip install .` command when the setup.py isn't detected in the source tree][1]. This patch incorporates a workaround from [@cjp256 at the Snapcraft Forum][2] to generate a setup.py file from the pyproject.toml to make the package works again. [1]: [Line 143 of snapcraft/python.py at 0e2cf91 · snapcore/snapcraft · GitHub](https://github.com/snapcore/snapcraft/blob/0e2cf91/snapcraft_legacy/plugins/v2/python.py#L143) [2]: [Ian Johnson's reply in "Building a core20 python snap using pyproject.toml - snapcraft - snapcraft.io"](https://forum.snapcraft.io/t/building-a-core20-python-snap-using-pyproject-toml/22028/2) Fixes #1082. Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com> * Remove unnecessary cloning of own source tree to build the snap package Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com> --------- Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
- Loading branch information