-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add Windows recipe #2
Changes from all commits
7f8cd5b
155594d
1c3c523
bdf2380
63541ae
6f59291
83f9deb
464ce3a
e90076e
3c67c16
5a5b10a
cae6107
c0b0507
a62fb1a
4f3ac7d
15646d8
f5cdd59
b3b6aab
7d7877b
5195ace
43e0829
28ed6c7
793b403
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# This file was automatically generated by conda-smithy. To update a component of this | ||
# file, make changes to conda-forge.yml and/or recipe/meta.yaml, and run | ||
# "conda smithy rerender". | ||
|
||
environment: | ||
|
||
CONDA_INSTALL_LOCN: "C:\\conda" | ||
|
||
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the | ||
# /E:ON and /V:ON options are not enabled in the batch script intepreter | ||
# See: http://stackoverflow.com/a/13751649/163740 | ||
CMD_IN_ENV: "cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd" | ||
|
||
# We set a default Python version for the miniconda that is to be installed. This can be | ||
# overridden in the matrix definition where appropriate. | ||
CONDA_PY: "27" | ||
BINSTAR_TOKEN: | ||
# The BINSTAR_TOKEN secure variable. This is defined canonically in conda-forge.yml. | ||
secure: 4ef5IUakGqqw7GSfuIp93Q4MdAC1VnweE1kFVAOUs6ThPDQWBqNpGaq6ZuEbX1FL | ||
|
||
matrix: | ||
- TARGET_ARCH: x86 | ||
CONDA_PY: 27 | ||
|
||
- TARGET_ARCH: x64 | ||
CONDA_PY: 27 | ||
|
||
- TARGET_ARCH: x86 | ||
CONDA_PY: 34 | ||
|
||
- TARGET_ARCH: x64 | ||
CONDA_PY: 34 | ||
|
||
- TARGET_ARCH: x86 | ||
CONDA_PY: 35 | ||
|
||
- TARGET_ARCH: x64 | ||
CONDA_PY: 35 | ||
|
||
|
||
# We always use a 64-bit machine, but can build x86 distributions | ||
# with the TARGET_ARCH variable. | ||
platform: | ||
- x64 | ||
|
||
install: | ||
# If there is a newer build queued for the same PR, cancel this one. | ||
# The AppVeyor 'rollout builds' option is supposed to serve the same | ||
# purpose but it is problematic because it tends to cancel builds pushed | ||
# directly to master instead of just PR builds (or the converse). | ||
# credits: JuliaLang developers. | ||
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod ` | ||
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | ` | ||
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { ` | ||
throw "There are newer queued builds for this pull request, failing early." } | ||
|
||
# Cywing's git breaks conda-build. (See https://github.com/conda-forge/conda-smithy-feedstock/pull/2.) | ||
- cmd: rmdir C:\cygwin /s /q | ||
- appveyor DownloadFile "https://raw.githubusercontent.com/pelson/Obvious-CI/master/bootstrap-obvious-ci-and-miniconda.py" | ||
- cmd: python bootstrap-obvious-ci-and-miniconda.py %CONDA_INSTALL_LOCN% %TARGET_ARCH% %CONDA_PY:~0,1% --without-obvci | ||
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat | ||
- cmd: set PYTHONUNBUFFERED=1 | ||
|
||
- cmd: conda config --set show_channel_urls true | ||
- cmd: conda install -c pelson/channel/development --yes --quiet obvious-ci | ||
- cmd: conda config --add channels conda-forge | ||
- cmd: conda install -n root --quiet --yes conda-forge-build-setup | ||
- cmd: run_conda_forge_build_setup | ||
# This needs to be updated to conda-forge channel before PR | ||
- appveyor DownloadFile "https://raw.githubusercontent.com/shadowwalkersb/conda-smithy/fix-appveyor-vc9-64/appveyor/setup_x64.bat" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just realized that this was left over and made it to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re-rendering in PR ( #7 ), which will strip this out. Also added a build number bump to get a clean build without this change. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So this fails without it, but it is because we are using the VS generator. If we switch to NMake, I expect this goes away. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a package that was in the works in PR ( conda-forge/staged-recipes#617 ), which needs to be revitalized. It does a similar thing to what is being done here. Could you please take a look at it? If you have time, it would great to get that package fixed up so it could clear staged-recipes. |
||
- cmd: call setup_x64.bat | ||
|
||
# Skip .NET project specific build phase. | ||
build: off | ||
|
||
test_script: | ||
- "%CMD_IN_ENV% conda build recipe --quiet" | ||
deploy_script: | ||
|
||
- 'python ci_support\upload_or_check_non_existence.py .\recipe conda-forge --channel=main' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
travis: | ||
secure: | ||
BINSTAR_TOKEN: YsbldV/Kx08dPydVAgaLzuOKg0Gq4j53cU58x6ecGOuJKf6MQS2hRP0fkoMOfdlpYp96rxbhLS5QbXc2MNjdqPaxNOSk/yoySzXGtoA30BcVmMxEoCe8VgLHAcXdS+EHYNrM//l62VzcAqmx7GWnVTGYISbXOhDhkb8YKk94vV1UTPwpfuWkvVHbCFKFCsqgllNblx4gBS/25vOVlZRkV9/hM5DDGW1PuOaYlQHWDpYZogVlk2WYmS0LnjCxOxEePArld8yvpuw3Y6NteoX0iAWQuXL5jkXwN3NrP8alG28Eqm7dnb90I4Tg6Rby8LrYYQq0gzeGtt8o8vHc7MsgNkcpsNjuNg6PLoShxGnOmpwhV7WJEMs9FPc1K2RF4WPrUPIJBKj1U/h4aetn0b2FyjgUBbNufjoaZkZ15Vqiy6yXTdcDQZy4bFH6wIir+hLXcL+2DxtG5GVvR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FVAOUs6ThPDQWBqNpGaq6ZuEbX1FL | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reverted in PR ( #12 ). |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
mkdir build && cd build | ||
cmake ^ | ||
-G "%CMAKE_GENERATOR%" ^ | ||
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ | ||
-DCMAKE_INSTALL_BINDIR=%LIBRARY_BIN% ^ | ||
-DCMAKE_INSTALL_LIBDIR=%LIBRARY_LIB% ^ | ||
-DCMAKE_INSTALL_INCLUDEDIR=%LIBRARY_INC% ^ | ||
-DFREEGLUT_BUILD_DEMOS=OFF ^ | ||
.. | ||
|
||
cmake --build . --config Release --target INSTALL |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,22 +10,37 @@ source: | |
md5: 90c3ca4dd9d51cf32276bc5344ec9754 | ||
|
||
build: | ||
number: 0 | ||
skip: true # [not linux] | ||
number: 1 | ||
skip: true # [osx] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add these above. features:
- vc9 # [win and py27]
- vc10 # [win and py34]
- vc14 # [win and py35] |
||
features: | ||
- vc9 # [win and py27] | ||
- vc10 # [win and py34] | ||
- vc14 # [win and py35] | ||
|
||
requirements: | ||
build: | ||
- cmake | ||
- python # [win] | ||
|
||
test: | ||
requires: | ||
- python {{ environ['PY_VER'] + '*' }} # [win] | ||
commands: | ||
# Test includes. | ||
- test -d "${PREFIX}/include/GL" | ||
- test -d "${PREFIX}/include/GL" # [linux] | ||
|
||
# Test libraries. | ||
- test -f "${PREFIX}/lib/libglut.a" | ||
- test -f "${PREFIX}/lib/libglut.so" | ||
- ldd "${PREFIX}/lib/libglut.so" | ||
- test -f "${PREFIX}/lib/libglut.a" # [linux] | ||
- test -f "${PREFIX}/lib/libglut.so" # [linux] | ||
- ldd "${PREFIX}/lib/libglut.so" # [linux] | ||
|
||
# Test Windows includes and libraries. | ||
- if not exist %LIBRARY_INC%\\GL\\freeglut.h exit 1 # [win] | ||
- if not exist %LIBRARY_INC%\\GL\\freeglut_ext.h exit 1 # [win] | ||
- if not exist %LIBRARY_INC%\\GL\\freeglut_std.h exit 1 # [win] | ||
- if not exist %LIBRARY_INC%\\GL\\glut.h exit 1 # [win] | ||
- if not exist %LIBRARY_LIB%\\freeglut.lib exit 1 # [win] | ||
- if not exist %LIBRARY_BIN%\\freeglut.dll exit 1 # [win] | ||
|
||
about: | ||
home: http://freeglut.sourceforge.net/ | ||
|
@@ -35,3 +50,4 @@ about: | |
extra: | ||
recipe-maintainers: | ||
- jakirkham | ||
- shadowwalkersb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to the original secure token in PR ( #12 ).