Skip to content

Commit be5ccb5

Browse files
committed
Improve the package scripts.
1 parent 44104d2 commit be5ccb5

File tree

6 files changed

+38
-21
lines changed

6 files changed

+38
-21
lines changed

conda/libgpuarray/bld.bat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
cmake -G"NMake Makefiles" ^
2+
-DCMAKE_BUILD_TYPE=Release ^
3+
-DCMAKE_PREFIX_PATH="%LIBRARY_PREFIX%" ^
4+
-DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^
5+
-DCMAKE_C_FLAGS="-I%LIBRARY_PREFIX%\include" ^
6+
"%SRC_DIR%"
7+
cmake --build . --config Release --target ALL_BUILD
8+
cmake --build . --config Release --target install

conda/libgpuarray/build.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1-
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX
2-
make install
1+
#!/bin/bash
2+
3+
if [[ $(uname) == Darwin ]]; then
4+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_OSX_DEPLOYMENT_TARGET=
5+
else
6+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX
7+
fi
8+
cmake --build . --config Release --target all
9+
cmake --build . --config Release --target install

conda/libgpuarray/meta.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,20 @@ build:
1414
features:
1515
- vc9 # [win and py27]
1616
- vc10 # [win and py34]
17-
- vc14 # [win and py35]
18-
- vc14 # [win and py36]
17+
- vc14 # [win and (py35 or py36)]
1918

2019
requirements:
2120
build:
21+
- m2-git [win]
22+
- m2-filesystem [win]
23+
- git [not win]
2224
- cmake
23-
- python # [win]
24-
25-
test:
26-
requires:
27-
- python {{ environ['PY_VER'] + '*' }} # [win]
28-
commands:
29-
- test -f ${PREFIX}/lib/libgpuarray.dylib # [osx]
30-
- test -f ${PREFIX}/lib/libgpuarray.so # [linux]
31-
- if not exist %PREFIX%\\Library\\lib\\gpuarray.lib exit 1 # [win]
25+
- mako
26+
- python
27+
run:
28+
- vs2008_runtime [win and py27]
29+
- vs2010_runtime [win and py34]
30+
- vs2015_runtime [win and (py35 or py36)]
3231

3332
about:
3433
home: http://github.com/Theano/libgpuarray

conda/pygpu/bld.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
set LIB=%LIBRARY_LIB%;%LIB%
2+
set INCLUDE=%LIBRARY_INC%;%INCLUDE%
3+
%PYTHON% setup.py install --single-version-externally-managed --record=record.txt

conda/pygpu/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
export CFLAGS=${CFLAGS}" -I${PREFIX}/include -L${PREFIX}/lib"
4+
$PYTHON setup.py install --single-version-externally-managed --record=record.txt

conda/pygpu/meta.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ source:
1010

1111
build:
1212
number: 0
13-
script:
14-
- export CFLAGS="${CFLAGS} -I${PREFIX}/include -L${PREFIX}/lib" # [unix]
15-
- python setup.py install --single-version-externally-managed --record record.txt
13+
detect_binary_files_with_prefix: False
1614

1715
requirements:
1816
build:
17+
- m2-git [win]
18+
- m2-filesystem [win]
19+
- git [not win]
1920
- python
2021
- cython >=0.25
2122
- numpy x.x
@@ -30,11 +31,6 @@ requirements:
3031
- six
3132
- libgpuarray =={{ version }}
3233

33-
test:
34-
imports:
35-
- pygpu
36-
- pygpu.gpuarray
37-
3834
about:
3935
home: http://github.com/Theano/libgpuarray
4036
license: ISC

0 commit comments

Comments
 (0)