-
Notifications
You must be signed in to change notification settings - Fork 14
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 #111 from dls-controls/imalcolm
Imalcolm
- Loading branch information
Showing
124 changed files
with
2,248 additions
and
1,065 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
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,39 @@ | ||
#!/bin/sh | ||
# sip | ||
SIP_VER=4.13.3 | ||
SIP_DIR=sip-${SIP_VER} | ||
SIP_TAR=${SIP_DIR}.tar.gz | ||
# pyqt | ||
PYQT_VER=4.9.4 | ||
PYQT_DIR=PyQt-x11-gpl-${PYQT_VER} | ||
PYQT_TAR=${PYQT_DIR}.tar.gz | ||
SITE_PACKAGES=${VIRTUAL_ENV}/lib/python${TRAVIS_PYTHON_VERSION}/site-packages | ||
set -ex | ||
if [ ! -e ${SITE_PACKAGES}/PyQt4 ]; then | ||
# Install sip | ||
wget http://sourceforge.net/projects/pyqt/files/sip/${SIP_DIR}/${SIP_TAR} | ||
tar -xzf ${SIP_TAR} | ||
cd ${SIP_DIR} | ||
python ./configure.py \ | ||
--bindir=$(pwd)/prefix/bin \ | ||
--sipdir=$(pwd)/prefix/share/sip \ | ||
--incdir=$(pwd)/prefix/include \ | ||
--destdir=${SITE_PACKAGES} | ||
make -j 2 | ||
make install | ||
cd .. | ||
# Install pyqt | ||
export PATH=$PATH:$(pwd)/${SIP_DIR}/prefix/bin | ||
wget http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-${PYQT_VER}/${PYQT_TAR} | ||
tar -xzf ${PYQT_TAR} | ||
rm ${PYQT_TAR} | ||
cd ${PYQT_DIR} | ||
mkdir prefix | ||
python ./configure.py \ | ||
--confirm-license \ | ||
--bindir=$(pwd)/prefix/bin \ | ||
--destdir=${SITE_PACKAGES} | ||
make -j 2 | ||
make install | ||
cd .. | ||
fi |
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,2 @@ | ||
assemblies.demo.hello: | ||
name: hello |
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,6 @@ | ||
# import subpackages | ||
from malcolm.packageutil import import_sub_packages | ||
|
||
__all__ = import_sub_packages(globals(), __name__) | ||
|
||
del import_sub_packages |
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,6 @@ | ||
# import subpackages | ||
from malcolm.assemblyutil import make_all_assemblies | ||
|
||
__all__ = make_all_assemblies(globals(), __name__) | ||
|
||
del make_all_assemblies |
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 @@ | ||
controllers.HelloController: |
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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
# make the import path nice | ||
from malcolm.util import import_child_packages | ||
from malcolm.packageutil import import_methodmeta_decorated_classes | ||
|
||
class_dict = import_child_packages("controllers") | ||
__all__ = import_methodmeta_decorated_classes(globals(), __name__) | ||
|
||
globals().update(class_dict) | ||
__all__ = list(class_dict) | ||
|
||
del class_dict | ||
del import_child_packages | ||
del import_methodmeta_decorated_classes |
Oops, something went wrong.