Skip to content

api: Cygwin compatibility#365

Open
Artoria2e5 wants to merge 3 commits intoemcconville:masterfrom
Artoria2e5:a2e5-cygwin
Open

api: Cygwin compatibility#365
Artoria2e5 wants to merge 3 commits intoemcconville:masterfrom
Artoria2e5:a2e5-cygwin

Conversation

@Artoria2e5
Copy link
Copy Markdown

@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
Copy Markdown
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.

1 participant