Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Kkwiek/pysimulator #648

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions omniorb/0001-Fixed-windows-platform-for-python2.7.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
From b23c7bf62da7f70b1e082a851292746d316db776 Mon Sep 17 00:00:00 2001
From: "Kamil Kwiek (irritum)" <[email protected]>
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

39 changes: 39 additions & 0 deletions omniorb/0001-Fixed-windows-platform-for-python3.5.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
From 9bb8ca5f6cea72093be7e553e4aa066ffad74f14 Mon Sep 17 00:00:00 2001
From: "Kamil Kwiek (irritum)" <[email protected]>
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 <top>/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

39 changes: 39 additions & 0 deletions omniorb/0001-Fixed-windows-platform-for-python3.x.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
From 0bf31453768b674e3bacea2f30b29a1df89fa59d Mon Sep 17 00:00:00 2001
From: "Kamil Kwiek (irritum)" <[email protected]>
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

21 changes: 21 additions & 0 deletions omniorb/bld.bat
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions omniorb/build.sh
Original file line number Diff line number Diff line change
@@ -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;

34 changes: 34 additions & 0 deletions omniorb/meta.yaml
Original file line number Diff line number Diff line change
@@ -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.

1 change: 1 addition & 0 deletions omniorb/run_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from omniidl import idlast, idlvisitor, idlutil
2 changes: 2 additions & 0 deletions python/ompython/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
%PYTHON% setup.py install
if errorlevel 1 exit 1
6 changes: 6 additions & 0 deletions python/ompython/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

mkdir -vp ${PREFIX}/bin;

${PYTHON} setup.py install || exit 1;

33 changes: 33 additions & 0 deletions python/ompython/meta.yaml
Original file line number Diff line number Diff line change
@@ -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

1 change: 1 addition & 0 deletions python/ompython/run_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from OMPython import OMCSession
33 changes: 33 additions & 0 deletions python/pysimulator/.binstar.yml
Original file line number Diff line number Diff line change
@@ -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: ['[email protected]']
2 changes: 2 additions & 0 deletions python/pysimulator/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
%PYTHON% setup.py install
if errorlevel 1 exit 1
3 changes: 3 additions & 0 deletions python/pysimulator/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

${PYTHON} setup.py install || exit 1;
73 changes: 73 additions & 0 deletions python/pysimulator/meta.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions python/pysimulator/run_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from PySimulator.PySimulator import SimulatorGui