Use sysconfig for Python dll locations#21
Conversation
|
Appveyor is failing, I'll need to take a look. |
|
I just tried building this, this fails for me: |
|
Should this not be something more like |
Did you build together with the changes in fontforge/fontforge#5423 ? They can't work separately. If you did, and it failed, please try fontforge@e16f32d with iorsh/fontforge@418a9fc and attach the entire building log. I'll check. |
Unfortunately This forces absolute path (which is discouraged by CMake) and the variable names are different for each platform. You can check this at https://github.com/iorsh/fontforge/actions/runs/9223726161/ - see the "Run pyhook smoke test" entry for Mac and Linux |
|
Ok, I see that change, but it looks wrong imo. The default installation shouldn't be assuming a user install. |
|
I'm a bit confused here about the build steps. As I understand, Maybe I should keep the intermediate location with Maybe I'm missing something here though.. What do you think? |
distutils is deprecated with removal planned for Python 3.12.
Replace distutils with a similar functionality from sysconfig to avoid CI failure.
This change is necessary to update CI to macos-12, which doesn't have Python 3.10.
Please review this PR together with the related fontforge/fontforge#5423