Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: Cygwin compatibility #365

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Artoria2e5
Copy link

@Artoria2e5 Artoria2e5 commented Mar 13, 2018

This change adds Cygwin compatibility by generalizing some Windows and Linux functionalities. In particular:

  • Some tests for Windows are changed into one that consider and accept Cygwin/MSYS2 runtime layers.
  • Registry values no longer change magick_home; they now influence PATH instead. ctypes on (plain) Windows search based on PATH; on Unixized Windows they use the normal *nix stuff.
  • msvcrt-specific parts are not changed, so they still test for plain Windows.
  • *nix libc loading now default to the BSD "let ctypes find libc" loader, technically correct for every *nix system including Darwin. The hardcoded libc6 value is preserved as a fallback.
  • *nix libmagick handling now accepts a separate library as found on Cygwin and MinGW.

This change adds Cygwin compatibility by generalizing some Windows and Linux functionalities. In particular:

* Some tests for Windows are changed into one that consider and accept Cygwin/MSYS2 runtime layers.
* Registry values no longer change magick_home; they now influence PATH instead. ctypes on Windows search based on PATH.
* msvcrt-specific parts are not changed.
* *nix libc loading now default to the BSD "let ctypes find libc" loader, technically correct for every *nix system including Darwin. The hardcoded libc6 value is preserved as a fallback.
* *nix libmagick handling now accepts a separate library as found on Cygwin and MinGW.
A previous version forgot to add the original PATH back for prepending. This version fixes the problem and corrects path separater for Unixized Windows environments.
Please squash this. This is embarassing.
@Artoria2e5
Copy link
Author

Artoria2e5 commented Oct 20, 2018

ping… would anyone take a look at this? It works for me last time I checked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant