Skip to content

Commit

Permalink
add ability to install pythonnet using git+https
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed Nov 29, 2020
1 parent 2284541 commit 8c14378
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@ environment:
- PYTHON: C:\Python38
- PYTHON: C:\Python38-x64
- PYTHON: C:\Python39
CLONE_PYTHONNET: "true"
- PYTHON: C:\Python39-x64
CLONE_PYTHONNET: "true"

install:
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- python --version
- python -m pip install --upgrade pip
- python -m pip install --upgrade setuptools wheel
- python -m pip install --upgrade PySide2 pytest pytest-cov pytest-runner
- IF "%CLONE_PYTHONNET%"=="true" (
python -m pip install pycparser &&
python -m pip install git+https://github.com/pythonnet/pythonnet.git &&
)
- python -m pip list
- python -c "from PySide2.QtWidgets import QApplication; QApplication([])"

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def get_version():
install_requires = []

tests_require = ['pytest', 'pytest-cov', 'PySide2']
if sys.platform == 'win32':
if sys.platform == 'win32' and sys.version_info[:2] < (3, 9):
tests_require.append('pythonnet')

testing = {'test', 'tests', 'pytest'}.intersection(sys.argv)
Expand Down

0 comments on commit 8c14378

Please sign in to comment.