To do this, I've adjusted the methodology of test_manylinux to that of the manylinux builds a little, citing entrypoint.sh.
Instead of setting the PATH in Dockerfile (which was causing the "no valid C compiler" errors) I've adjusted test_manylinux.yaml to use the same substitution methodology seen in entrypoint.sh to get the python executable irrespective of PATH. I also needed to add the LD_LIBRARY_PATH hack in order for libmecab.so to be found.
This also means that the versions being tested for don't have to live both in Dockerfile AND in test_manylinux.yaml, which they did previously.
Overall, there are a couple of changes I'd still like to see here (caching of Mecab and sharing of resources between the manylinux builds and tests, most notably), but if I was going to do any CI refactors it would be to the entirety layout of the CI-relevant files so for now I intend to wait on my existing PRs being merged then hopefully dive into it all with a scalpel.
Closes #48 since manylinux2014 was already working for builds.
To do this, I've adjusted the methodology of
test_manylinux
to that of the manylinux builds a little, citingentrypoint.sh
.Instead of setting the
PATH
inDockerfile
(which was causing the "no valid C compiler" errors) I've adjustedtest_manylinux.yaml
to use the same substitution methodology seen inentrypoint.sh
to get thepython
executable irrespective ofPATH
. I also needed to add theLD_LIBRARY_PATH
hack in order forlibmecab.so
to be found.This also means that the versions being tested for don't have to live both in
Dockerfile
AND intest_manylinux.yaml
, which they did previously.Working tests run: https://github.com/lambdadog/fugashi/actions/runs/1603485583
Overall, there are a couple of changes I'd still like to see here (caching of Mecab and sharing of resources between the manylinux builds and tests, most notably), but if I was going to do any CI refactors it would be to the entirety layout of the CI-relevant files so for now I intend to wait on my existing PRs being merged then hopefully dive into it all with a scalpel.
Closes #48 since manylinux2014 was already working for builds.