Skip to content

Commit 5d8bc43

Browse files
committed
Started on a conda package.
1 parent 81f9aab commit 5d8bc43

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

RevAssign.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717
__date__ = "2011dec19"
1818
__version__ = "r3086"
1919

20-
import os,sys
20+
import os
21+
import sys
2122
import time
23+
sys.path.insert(0, '../')
2224

2325
# load c helper module
2426
try:
25-
import decutil
27+
from RevAssign import decutil
2628
sortMsg = 'sorting items...'
2729
sortType = 0
2830
except:
@@ -38,10 +40,10 @@
3840
from PyQt4 import QtCore,QtGui
3941

4042
# Import the compiled UI module
41-
from windowUi import Ui_MainWindow
43+
from RevAssign.windowUi import Ui_MainWindow
4244

4345
# Import the backend data containers
44-
import backend
46+
from RevAssign import backend
4547

4648

4749
# correct the numeric sorting for specified columns of the category list
@@ -957,7 +959,7 @@ def on_actionAbout_triggered(self,checked=None):
957959
if checked is None: return
958960
QtGui.QMessageBox.about(self,"About The AMPC Chair", \
959961
"This is the ISMRM AMPC Chair window for assigning reviewers to categories.\n\n"+ \
960-
"\tAuthors: "+str(__authors__)+"\n" \
962+
"\tAuthors: "+str(', '.join(__authors__))+"\n" \
961963
"\tDate: "+str(__date__)+"\n" \
962964
"\tVersion: "+str(__version__))
963965

__init__.py

Whitespace-only changes.

conda/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
set -x
44
set -e
55

6+
mkdir -p $PREFIX/lib/RevAssign
7+
cp -R * $PREFIX/lib/RevAssign/
8+
69
exit

conda/package.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
CHANNEL=nckz
32
OUTPUT=`conda build ./ --output`
4-
conda build ./ -c $CHANNEL
5-
anaconda upload -c $CHANNEL $OUTPUT -f
3+
conda build ./
4+
anaconda upload $OUTPUT --force

conda/wrappaconda.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
# wrap into an app using wrappaconda
3+
wrappaconda.py -n RevAssign -t ../RevAssign.py -o --py2 -c nckz -p revassign

0 commit comments

Comments
 (0)