Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from anton-matosov/conda_build
Conda build for all platforms
- Loading branch information
Showing
31 changed files
with
948 additions
and
634 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
os: | ||
- osx | ||
- linux | ||
|
||
osx_image: xcode9.2 | ||
sudo: required | ||
services: | ||
- docker | ||
|
||
language: cpp | ||
|
||
branches: | ||
only: | ||
- master | ||
- stable | ||
|
||
env: # Don't forget to pass env to docker in run_in_docker.sh | ||
- CONDA_PY=27 | ||
- CONDA_PY=35 | ||
- CONDA_PY=36 | ||
|
||
script: | ||
./travis/main.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
image: Visual Studio 2017 | ||
|
||
# We always use a 64-bit machine, but can build x86 distributions | ||
# with the TARGET_ARCH variable. | ||
platform: | ||
- x64 | ||
|
||
environment: | ||
fast_finish: true | ||
|
||
matrix: | ||
# Unfortunately, compiler/SDK configuration for 64 bit builds depends on | ||
# python version. Right now conda build does not configure the SDK, and | ||
# the appveyor setup only sets up the SDK once, so separate by python | ||
# versions. | ||
- TARGET_ARCH: "x64" | ||
CONDA_PY: "35" | ||
MINICONDA: "C:\\Miniconda%CONDA_PY%-%TARGET_ARCH%" | ||
- TARGET_ARCH: "x86" | ||
CONDA_PY: "35" | ||
MINICONDA: "C:\\Miniconda%CONDA_PY%" | ||
|
||
- TARGET_ARCH: "x64" | ||
CONDA_PY: "36" | ||
MINICONDA: "C:\\Miniconda%CONDA_PY%-%TARGET_ARCH%" | ||
- TARGET_ARCH: "x86" | ||
CONDA_PY: "36" | ||
MINICONDA: "C:\\Miniconda%CONDA_PY%" | ||
|
||
init: | ||
- "ECHO %MINICONDA%" | ||
|
||
install: | ||
- "%MINICONDA%\\Scripts\\Activate.bat" | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda update -q conda | ||
- conda info -a | ||
- conda install anaconda-client conda-build | ||
- yes | anaconda login --username %CONDA_LOGIN_USERNAME% --password %CONDA_LOGIN_PASSWORD% --hostname MultiNEAT-APPVYR-WIN-BUILD-%APPVEYOR_BUILD_NUMBER%-%CONDA_PY%-%TARGET_ARCH% | ||
- conda config --set anaconda_upload %CONDA_UPLOAD% | ||
|
||
build: false | ||
|
||
test_script: | ||
- "%MINICONDA%\\Scripts\\Activate.bat" | ||
- conda build conda/ -c defaults -c conda-forge | ||
|
||
skip_commits: | ||
files: | ||
- docs/* | ||
- travis/* | ||
- .travis.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@ECHO ON | ||
|
||
REM Make sure to use proper python from conda | ||
REM set PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\ | ||
|
||
set MN_BUILD=boost | ||
|
||
python %SRC_DIR%/setup.py build_ext | ||
python %SRC_DIR%/setup.py install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
# set -x | ||
set -e | ||
|
||
export MN_BUILD=boost | ||
|
||
SOURCE_CODE_DIR=${SRC_DIR:-$(dirname $0)/..} | ||
|
||
python ${SOURCE_CODE_DIR}/setup.py build_ext | ||
python ${SOURCE_CODE_DIR}/setup.py install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
python: | ||
- 2.7 # [not win] | ||
- 3.5 | ||
- 3.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package: | ||
name: multineat | ||
version: 0.5 # Update version in setup.py as well | ||
|
||
build: | ||
number: | ||
{{ environ.get('TRAVIS_BUILD_NUMBER', environ.get('APPVEYOR_BUILD_NUMBER', 0)) }} | ||
|
||
source: | ||
path: .. | ||
|
||
test: | ||
source_files: | ||
- examples/TestTraits.py | ||
- examples/NoveltySearch.py | ||
- examples/TestNEAT_xor.py | ||
- examples/TestHyperNEAT_xor.py | ||
|
||
requirements: | ||
build: | ||
- python | ||
- psutil | ||
- boost=1.66* | ||
- boost-cpp=1.66* | ||
# - {{ compiler('cxx') }} # This results in issues with headers discovery of boost and python. On all platforms | ||
# - jinja2 | ||
run: | ||
- python | ||
- psutil | ||
- boost=1.66* | ||
- boost-cpp=1.66* | ||
- numpy>=1.11.3 | ||
- matplotlib=2.2* | ||
- opencv=3.3* | ||
# - progressbar # Python 2.7 only, needs to be replaced in main library code | ||
|
||
about: | ||
home: http://MultiNEAT.com | ||
license: LGPL (>= 3) | ||
license_family: LGPL | ||
summary: | ||
Portable NeuroEvolution Library. Implements NEAT, rtNETA, HyperNEAT, Novelty Search and others. | ||
description: | | ||
MultiNEAT is a portable software library for performing neuroevolution, a form of machine learning that trains neural networks with a genetic algorithm. It is based on NEAT, an advanced method for evolving neural networks through complexification. The neural networks in NEAT begin evolution with very simple genomes which grow over successive generations. The individuals in the evolving population are grouped by similarity into species, and each of them can compete only with the individuals in the same species. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
REM show test env before latering it | ||
set | ||
|
||
%PYTHON% "%SRC_DIR%/examples/TestTraits.py" | ||
REM %PYTHON% "%SRC_DIR%/examples/NoveltySearch.py" | ||
%PYTHON% "%SRC_DIR%/examples/TestNEAT_xor.py" | ||
%PYTHON% "%SRC_DIR%/examples/TestHyperNEAT_xor.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
set -e | ||
|
||
SOURCE_CODE_DIR=${SRC_DIR:-$(dirname $0)/..} | ||
|
||
# ${SOURCE_CODE_DIR}/examples/NoveltySearch.py - requires pygame and runs forever | ||
TESTS="${SOURCE_CODE_DIR}/examples/TestTraits.py ${SOURCE_CODE_DIR}/examples/TestNEAT_xor.py ${SOURCE_CODE_DIR}/examples/TestHyperNEAT_xor.py" | ||
|
||
echo $TESTS | xargs -n 1 -P 4 python | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.