From 813fbd6414fa9d810adc4d8e568cb9a6d593b08c Mon Sep 17 00:00:00 2001 From: "Kamil Kwiek (irritum)" Date: Mon, 21 Mar 2016 20:02:17 +0100 Subject: [PATCH 1/3] Added recipe for omniorb-4.2.1 package --- ...Fixed-windows-platform-for-python2.7.patch | 39 +++++++++++++++++++ ...Fixed-windows-platform-for-python3.5.patch | 39 +++++++++++++++++++ ...Fixed-windows-platform-for-python3.x.patch | 39 +++++++++++++++++++ omniorb/bld.bat | 21 ++++++++++ omniorb/build.sh | 13 +++++++ omniorb/meta.yaml | 34 ++++++++++++++++ omniorb/run_test.py | 1 + 7 files changed, 186 insertions(+) create mode 100644 omniorb/0001-Fixed-windows-platform-for-python2.7.patch create mode 100644 omniorb/0001-Fixed-windows-platform-for-python3.5.patch create mode 100644 omniorb/0001-Fixed-windows-platform-for-python3.x.patch create mode 100644 omniorb/bld.bat create mode 100644 omniorb/build.sh create mode 100644 omniorb/meta.yaml create mode 100644 omniorb/run_test.py diff --git a/omniorb/0001-Fixed-windows-platform-for-python2.7.patch b/omniorb/0001-Fixed-windows-platform-for-python2.7.patch new file mode 100644 index 000000000..ed7444403 --- /dev/null +++ b/omniorb/0001-Fixed-windows-platform-for-python2.7.patch @@ -0,0 +1,39 @@ +From b23c7bf62da7f70b1e082a851292746d316db776 Mon Sep 17 00:00:00 2001 +From: "Kamil Kwiek (irritum)" +Date: Mon, 21 Mar 2016 11:53:35 +0100 +Subject: [PATCH] Fixed windows platform for python2.7 + +--- + config/config.mk | 2 +- + mk/platforms/x86_win32_vs_8.mk | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git config/config.mk config/config.mk +index 5567123..a4d4495 100644 +--- config/config.mk ++++ config/config.mk +@@ -65,7 +65,7 @@ + #platform = x86_win32_vs_11 + #platform = x86_win32_vs_10 +-#platform = x86_win32_vs_9 ++platform = x86_win32_vs_9 + #platform = x86_win32_vs_8 + #platform = x86_win32_vs_7 + #platform = x86_win32_vs_6 + #platform = x86_win32_mingw +diff --git mk/platforms/x86_win32_vs_9.mk mk/platforms/x86_win32_vs_9.mk +index be80cf9..b91d1a9 100755 +--- mk/platforms/x86_win32_vs_9.mk ++++ mk/platforms/x86_win32_vs_9.mk +@@ -23,7 +23,7 @@ ABSTOP = $(shell cd $(TOP); pwd) + # http://sourceforge.net/project/showfiles.php?group_id=51138&package_id=48638 + # In that case, uncomment the first line below. + +-#PYTHON = $(ABSTOP)/$(BINDIR)/omnipython ++PYTHON = python + #PYTHON = /cygdrive/c/Python26/python + + +-- +2.0.5 + diff --git a/omniorb/0001-Fixed-windows-platform-for-python3.5.patch b/omniorb/0001-Fixed-windows-platform-for-python3.5.patch new file mode 100644 index 000000000..a50fa2479 --- /dev/null +++ b/omniorb/0001-Fixed-windows-platform-for-python3.5.patch @@ -0,0 +1,39 @@ +From 9bb8ca5f6cea72093be7e553e4aa066ffad74f14 Mon Sep 17 00:00:00 2001 +From: "Kamil Kwiek (irritum)" +Date: Mon, 21 Mar 2016 16:53:52 +0100 +Subject: [PATCH] Fixed windows platform for python3.5 + +--- + config/config.mk | 2 +- + mk/platforms/x86_win32_vs_14.mk | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git config/config.mk config/config.mk +index 5567123..c502299 100644 +--- config/config.mk ++++ config/config.mk +@@ -59,7 +59,7 @@ + # You should also look at /mk/platforms/$(platform).mk and if necessary + # edit the make variables, such as CC and CXX, in the file. + +-#platform = x86_win32_vs_14 ++platform = x86_win32_vs_14 + #platform = x86_win32_vs_13 + #platform = x86_win32_vs_12 + #platform = x86_win32_vs_11 +diff --git mk/platforms/x86_win32_vs_14.mk mk/platforms/x86_win32_vs_14.mk +index 8fb2ee9..b00f3b5 100644 +--- mk/platforms/x86_win32_vs_14.mk ++++ mk/platforms/x86_win32_vs_14.mk +@@ -23,7 +23,7 @@ ABSTOP = $(shell cd $(TOP); pwd) + # http://sourceforge.net/project/showfiles.php?group_id=51138&package_id=48638 + # In that case, uncomment the first line below. + +-#PYTHON = $(ABSTOP)/$(BINDIR)/omnipython ++PYTHON = python + #PYTHON = /cygdrive/c/Python26/python + + +-- +2.0.5 + diff --git a/omniorb/0001-Fixed-windows-platform-for-python3.x.patch b/omniorb/0001-Fixed-windows-platform-for-python3.x.patch new file mode 100644 index 000000000..8be523bb8 --- /dev/null +++ b/omniorb/0001-Fixed-windows-platform-for-python3.x.patch @@ -0,0 +1,39 @@ +From 0bf31453768b674e3bacea2f30b29a1df89fa59d Mon Sep 17 00:00:00 2001 +From: "Kamil Kwiek (irritum)" +Date: Mon, 21 Mar 2016 16:52:40 +0100 +Subject: [PATCH] Fixed windows platform for python3.x + +--- + config/config.mk | 2 +- + mk/platforms/x86_win32_vs_10.mk | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git config/config.mk config/config.mk +index 5567123..7df2f4d 100644 +--- config/config.mk ++++ config/config.mk +@@ -63,7 +63,7 @@ + #platform = x86_win32_vs_13 + #platform = x86_win32_vs_12 + #platform = x86_win32_vs_11 +-#platform = x86_win32_vs_10 ++platform = x86_win32_vs_10 + #platform = x86_win32_vs_9 + #platform = x86_win32_vs_8 + #platform = x86_win32_vs_7 +diff --git mk/platforms/x86_win32_vs_10.mk mk/platforms/x86_win32_vs_10.mk +index e5076ca..73fc1ed 100644 +--- mk/platforms/x86_win32_vs_10.mk ++++ mk/platforms/x86_win32_vs_10.mk +@@ -23,7 +23,7 @@ ABSTOP = $(shell cd $(TOP); pwd) + # http://sourceforge.net/project/showfiles.php?group_id=51138&package_id=48638 + # In that case, uncomment the first line below. + +-#PYTHON = $(ABSTOP)/$(BINDIR)/omnipython ++PYTHON = python + #PYTHON = /cygdrive/c/Python26/python + + +-- +2.0.5 + diff --git a/omniorb/bld.bat b/omniorb/bld.bat new file mode 100644 index 000000000..5259dfc1b --- /dev/null +++ b/omniorb/bld.bat @@ -0,0 +1,21 @@ + +cd src +if errorlevel 1 exit 1 + +make export +if errorlevel 1 exit 1 + +cd ../ +if errorlevel 1 exit 1 + +MKDIR %LIBRARY_LIB% +XCOPY /E lib\x86_win32\* %LIBRARY_LIB%\ +if errorlevel 1 exit 1 + +MKDIR %SP_DIR% +XCOPY /E lib\python\* %SP_DIR%\ +if errorlevel 1 exit 1 + +MKDIR %LIBRARY_BIN% +XCOPY /E bin\x86_win32\* %LIBRARY_BIN%\ +if errorlevel 1 exit 1 diff --git a/omniorb/build.sh b/omniorb/build.sh new file mode 100644 index 000000000..761807228 --- /dev/null +++ b/omniorb/build.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +mkdir -vp ${PREFIX}/bin; + +./configure --prefix=${PREFIX} || exit 1; + +if [[ $(uname) == 'Darwin' ]]; then + echo '' > update.log || exit 1; +fi + +make || exit 1; +make install || exit 1; + diff --git a/omniorb/meta.yaml b/omniorb/meta.yaml new file mode 100644 index 000000000..7081ce817 --- /dev/null +++ b/omniorb/meta.yaml @@ -0,0 +1,34 @@ +package: + name: omniorb + version: 4.2.1 + +source: + fn: omniORB-4.2.1-2.tar.bz2 + url: https://sourceforge.net/projects/omniorb/files/omniORB/omniORB-4.2.1/omniORB-4.2.1-2.tar.bz2 + + patches: + - 0001-Fixed-windows-platform-for-python2.7.patch # [win and py27] + - 0001-Fixed-windows-platform-for-python3.x.patch # [win and py33|py34] + - 0001-Fixed-windows-platform-for-python3.5.patch # [win and py35] + +build: + number: 0 + +requirements: + build: + - python + + run: + - python + +test: + commands: + - omniidl -h + - omniidlrun.py -h # [not win] + - omniNames -ORBhelp + +about: + home: https://openmodelica.org/ + license: BSD + summary: It's CORBA object request broker for C++ and Python. + diff --git a/omniorb/run_test.py b/omniorb/run_test.py new file mode 100644 index 000000000..041263d62 --- /dev/null +++ b/omniorb/run_test.py @@ -0,0 +1 @@ +from omniidl import idlast, idlvisitor, idlutil From 229b7def190c7cd89700cd299cce1972f12d8896 Mon Sep 17 00:00:00 2001 From: "Kamil Kwiek (irritum)" Date: Wed, 23 Mar 2016 10:03:09 +0100 Subject: [PATCH 2/3] Added recipe for ompython-2.0.7 package --- python/ompython/bld.bat | 2 ++ python/ompython/build.sh | 6 ++++++ python/ompython/meta.yaml | 33 +++++++++++++++++++++++++++++++++ python/ompython/run_test.py | 1 + 4 files changed, 42 insertions(+) create mode 100644 python/ompython/bld.bat create mode 100644 python/ompython/build.sh create mode 100644 python/ompython/meta.yaml create mode 100644 python/ompython/run_test.py diff --git a/python/ompython/bld.bat b/python/ompython/bld.bat new file mode 100644 index 000000000..85a7bc375 --- /dev/null +++ b/python/ompython/bld.bat @@ -0,0 +1,2 @@ +%PYTHON% setup.py install +if errorlevel 1 exit 1 diff --git a/python/ompython/build.sh b/python/ompython/build.sh new file mode 100644 index 000000000..c6e57e808 --- /dev/null +++ b/python/ompython/build.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +mkdir -vp ${PREFIX}/bin; + +${PYTHON} setup.py install || exit 1; + diff --git a/python/ompython/meta.yaml b/python/ompython/meta.yaml new file mode 100644 index 000000000..f7cafd195 --- /dev/null +++ b/python/ompython/meta.yaml @@ -0,0 +1,33 @@ +package: + name: ompython + version: 2.0.7 + +source: + fn: OMPython-2.0.7.tar.gz + url: https://pypi.python.org/packages/source/O/OMPython/OMPython-2.0.7.tar.gz + md5: 31c9a34c43e76772b1caa79a2bbf4f25 + +build: + number: 0 + +requirements: + build: + - distribute + - python + - pyparsing + - omniorb + + run: + - python + - pyparsing + - omniorb + +test: + imports: + - OMPython + +about: + home: http://openmodelica.org/ + license: BSD + summary: OpenModelica-Python API Interface + diff --git a/python/ompython/run_test.py b/python/ompython/run_test.py new file mode 100644 index 000000000..8ea4076d8 --- /dev/null +++ b/python/ompython/run_test.py @@ -0,0 +1 @@ +from OMPython import OMCSession From 73921d1b236ccac2030e2cc90244194be3ce2fc8 Mon Sep 17 00:00:00 2001 From: "Kamil Kwiek (irritum)" Date: Wed, 23 Mar 2016 13:52:06 +0100 Subject: [PATCH 3/3] Added recipe for pysimulator-0.61 package --- python/pysimulator/.binstar.yml | 33 +++++++++++++++ python/pysimulator/bld.bat | 2 + python/pysimulator/build.sh | 3 ++ python/pysimulator/meta.yaml | 73 +++++++++++++++++++++++++++++++++ python/pysimulator/run_test.py | 1 + 5 files changed, 112 insertions(+) create mode 100644 python/pysimulator/.binstar.yml create mode 100644 python/pysimulator/bld.bat create mode 100644 python/pysimulator/build.sh create mode 100644 python/pysimulator/meta.yaml create mode 100644 python/pysimulator/run_test.py diff --git a/python/pysimulator/.binstar.yml b/python/pysimulator/.binstar.yml new file mode 100644 index 000000000..3a548139b --- /dev/null +++ b/python/pysimulator/.binstar.yml @@ -0,0 +1,33 @@ +package: pysimulator +#user: blaze + +platform: + - linux-64 + - linux-32 + - osx-64 + - win-32 + - win-64 +engine: + - python=2.7 + - python=3.3 + - python=3.4 + +before_script: + - python -V + +install: + #- conda config --add channels mutirri + +script: + - conda build . + +env: + - LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 + +iotimeout: 120 + +build_targets: conda + +notifications: + email: + recipients: ['kamil.kwiek@continuum.com'] diff --git a/python/pysimulator/bld.bat b/python/pysimulator/bld.bat new file mode 100644 index 000000000..85a7bc375 --- /dev/null +++ b/python/pysimulator/bld.bat @@ -0,0 +1,2 @@ +%PYTHON% setup.py install +if errorlevel 1 exit 1 diff --git a/python/pysimulator/build.sh b/python/pysimulator/build.sh new file mode 100644 index 000000000..d5a07bc77 --- /dev/null +++ b/python/pysimulator/build.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +${PYTHON} setup.py install || exit 1; diff --git a/python/pysimulator/meta.yaml b/python/pysimulator/meta.yaml new file mode 100644 index 000000000..804a99aef --- /dev/null +++ b/python/pysimulator/meta.yaml @@ -0,0 +1,73 @@ +package: + name: pysimulator + version: 0.61 + +build: + number: 0 + +source: + git_url: https://github.com/PySimulator/PySimulator/ + git_tag: 0.61 + +requirements: + build: + - setuptools <=20 + - python + - pyside >=1.1 + - traits >=4.2 + - enable >=4.2 + - chaco >=4.2 + - configobj >=4.7 + - winshell >=0.6 # [win] + - matplotlib >=1.0 + - numpy >=1.6 + - pyparsing + - pil ==1.1.7 + - scipy + - pillow + - h5py + - pytz + - python-dateutil + - six + - tornado + - kiwisolver + - ompython + #- assimulo + #- sundials + + run: + - setuptools <=20 + - python + - pyside >=1.1 + - traits >=4.2 + - enable >=4.2 + - chaco >=4.2 + - configobj >=4.7 + - winshell >=0.6 # [win] + - matplotlib >=1.0 + - numpy >=1.6 + - pyparsing + - pil ==1.1.7 + - scipy + - pillow + - h5py + - pytz + - python-dateutil + - six + - tornado + - kiwisolver + - ompython + #- assimulo + #- sundials + +test: + imports: + - PySimulator.PySimulator + + commands: + - pysimulator /h # [win] + +about: + home: http://www.pysimulator.org/ + license: LGPL + summary: Simulation and Analysis Environment in Python with Plugin Infrastructur diff --git a/python/pysimulator/run_test.py b/python/pysimulator/run_test.py new file mode 100644 index 000000000..efab1c404 --- /dev/null +++ b/python/pysimulator/run_test.py @@ -0,0 +1 @@ +from PySimulator.PySimulator import SimulatorGui