I’m currently working on updating Swift to 5.3, and I’m running into some trouble with its test suite. A handful of its tests use Python, and import the
six package. I have
six as a dependency for the build, but for some reason the python process running these tests is not able to find it.
Strangely enough, when I drop in a small python script of my own, and run it within the
checkPhase, that script is able to
import six with no problems. The
$PYTHONPATH looks correct, and I’ve verified that the python executable being run in the swift tests is the same one from the nix store — version 2.7 in all cases.
I’m not familiar enough with Swift’s build process (or with Python for that matter) to imagine what might be making this package not load. I’m hoping someone on here might have ideas where to look next…