Skip to content

Commit

Permalink
Merge pull request #16 from naveen521kk/msys2
Browse files Browse the repository at this point in the history
Add support for MSYS2
  • Loading branch information
einarf authored Mar 13, 2021
2 parents ce6205e + a1ec276 commit 79814a4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build
on: [push, pull_request]

jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: >-
git
mingw-w64-x86_64-toolchain
mingw-w64-x86_64-python
mingw-w64-x86_64-python-setuptools
mingw-w64-x86_64-python-pip
mingw-w64-x86_64-python-pytest
- name: Build
run: |
python setup.py develop
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import platform

import sys
from setuptools import Extension, setup

PLATFORMS = {'windows', 'linux', 'darwin'}
Expand All @@ -26,6 +26,7 @@
wgl = Extension(
name='glcontext.wgl',
sources=['glcontext/wgl.cpp'],
extra_compile_args=['-fpermissive'] if 'GCC' in sys.version else [],
libraries=['user32', 'gdi32'],
)

Expand Down

0 comments on commit 79814a4

Please sign in to comment.