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

Commit eae995b

Browse files
Andy KuckBryan Parsons
authored andcommitted
Add Conda Recipe
1 parent d4ba3da commit eae995b

File tree

9 files changed

+95
-7
lines changed

9 files changed

+95
-7
lines changed

.gitlab-ci.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,25 @@ package_debian:
176176
dependencies:
177177
- build_debian
178178

179+
package_conda:
180+
stage: package
181+
tags:
182+
- docker-executor
183+
image: deb9_conda_py36
184+
only:
185+
refs:
186+
- master
187+
- /^ci_.*$/
188+
script:
189+
- conda activate conda_builder
190+
- export GIT_COMMIT=$CI_COMMIT_REF_NAME
191+
- conda-build conda_recipe
192+
- conda-build conda_recipe_py36
193+
artifacts:
194+
paths:
195+
- conda_envs/conda_builder/conda-bld/linux-64/
196+
dependencies: []
197+
179198
package_debian_wheel:
180199
stage: package
181200
tags:
@@ -239,7 +258,6 @@ package_redhat_wheel:
239258
- build_redhat
240259

241260

242-
sgltk_debian:
243261
sgltk_debian:
244262
stage: downstream
245263
tags:

BuildSetup.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ elseif( ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
3434
set( CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS} -O2" )
3535
elseif( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
3636
# Do not optimize for debug builds. Do the same for RELWITHDEBINFO ?
37+
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3" ) # BWT force optimization - cmake doesn't do it
3738
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
3839
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O2" )
3940
set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS} -O2" )

build.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ case `uname` in
253253
run cmake --build . --config Release
254254
;;
255255
*)
256-
args+=" -DCMAKE_CXX_FLAGS=-O3" # BWT force optimization - cmake doesn't do it
257256
echo "Run cmake $args $repo ##########################"
258257
run cmake $args $repo
259258
run make all -j $num_threads

conda_recipe/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./build.sh -e -b $SRC_DIR/build -i $PREFIX -j $CPU_COUNT -- -DCMAKE_CXX_FLAGS="-Wno-deprecated"

conda_recipe/conda_build_config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
numpy:
2+
- 1.8.*
3+
- 1.12.1.*

conda_recipe/meta.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package:
2+
name: gpstk
3+
version: {{ environ.get('GIT_DESCRIBE_TAG', 'v0.0')[1:] }}
4+
5+
source:
6+
git_rev: {{ environ.get('GIT_COMMIT', 'master') }}
7+
git_url: https://repositories.arlut.utexas.edu/sgl/gpstk.git
8+
9+
build:
10+
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
11+
script_env:
12+
- GIT_COMMIT
13+
14+
requirements:
15+
build:
16+
- {{ compiler('cxx') }}
17+
- {{ cdt('xorg-x11-proto-devel') }} # [linux]
18+
host:
19+
- python=2.7
20+
- setuptools
21+
- numpy {{ numpy }}
22+
run:
23+
- python=2.7
24+
- {{ pin_compatible('numpy') }}
25+
26+
test:
27+
imports:
28+
- gpstk
29+
30+
about:
31+
home: https://repositories.arlut.utexas.edu:sgl/gpstk
32+
summary: The GPS Toolkit (GPSTk)
33+
description: |
34+
The GPS Toolkit (GPSTk) is an open-source (LGPL) project sponsored by
35+
the Space and Geophysics Laboratory (SGL).

conda_recipe_py36/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./build.sh -e -b $SRC_DIR/build -i $PREFIX -j $CPU_COUNT -- -DCMAKE_CXX_FLAGS="-Wno-deprecated"

conda_recipe_py36/meta.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package:
2+
name: gpstk
3+
version: {{ environ.get('GIT_DESCRIBE_TAG', 'v0.0')[1:] }}
4+
5+
source:
6+
git_rev: {{ environ.get('GIT_COMMIT', 'master') }}
7+
git_url: https://repositories.arlut.utexas.edu/sgl/gpstk.git
8+
9+
build:
10+
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
11+
script_env:
12+
- GIT_COMMIT
13+
14+
requirements:
15+
build:
16+
- {{ compiler('cxx') }}
17+
- {{ cdt('xorg-x11-proto-devel') }} # [linux]
18+
host:
19+
- python=3.6
20+
- setuptools
21+
- numpy==1.12.1
22+
run:
23+
- python=3.6
24+
- {{ pin_compatible('numpy') }}
25+
26+
test:
27+
imports:
28+
- gpstk
29+
30+
about:
31+
home: https://repositories.arlut.utexas.edu:sgl/gpstk
32+
summary: The GPS Toolkit (GPSTk)
33+
description: |
34+
The GPS Toolkit (GPSTk) is an open-source (LGPL) project sponsored by
35+
the Space and Geophysics Laboratory (SGL).

swig/setup.py.in

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ classifiers_list = ['License :: OSI Approved :: GNU Library or Lesser General Pu
5858
# Dependencies for easy_install (may not be needed)
5959
requirements_list = [ "python >= 2.7.3",
6060
"numpy >= 1.4.4",
61-
"doxygen >= 1.8.1",
62-
"cmake >= 2.8",
63-
"make >= 3.81",
64-
"gcc >= 4.7.2",
65-
"swig >= 2.0",
6661
"setuptools >= 0.6",
6762
]
6863

0 commit comments

Comments
 (0)