Skip to content

Commit

Permalink
Add package for qpoint. Fix so3g recipe.
Browse files Browse the repository at this point in the history
  • Loading branch information
tskisner committed Sep 28, 2023
1 parent 05b51df commit 4425397
Show file tree
Hide file tree
Showing 10 changed files with 107 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ nav:
- Installation: install.md
- Automated Deployment: automate.md
- Developer Notes: dev.md
- Source on GitHub: "https://github.com/simonsobs/soconda"
- Source on GitHub: https://github.com/simonsobs/soconda

2 changes: 1 addition & 1 deletion packages_conda.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ ipykernel
# https://github.com/conda-forge/pyfftw-feedstock/issues/51
pyfftw==0.12
# Uncomment the next line if building so3g from source
#boost
boost
3 changes: 2 additions & 1 deletion packages_local.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
qpoint
pixell
libactpol_deps
libactpol
Expand All @@ -9,4 +10,4 @@ toast
# comment out line in packages_pip.txt. NOTE: this
# requires addressing pysqlite3-wheels and qpoint
# dependencies.
#so3g
so3g
1 change: 0 additions & 1 deletion packages_pip.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pysqlite3-wheels
quaternionarray
qpoint
pysm3
#
# Uncomment here if installing wheel, and comment out
Expand Down
21 changes: 21 additions & 0 deletions pkgs/qpoint/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Alexandra Rahlin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
6 changes: 6 additions & 0 deletions pkgs/qpoint/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

set -e
set -x

python -m pip install -vvv --ignore-installed --no-deps --prefix "${PREFIX}" .

57 changes: 57 additions & 0 deletions pkgs/qpoint/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{% set version = "1.12.4" %}
{% set sha256 = "d9acae381fbafdc57aac865fe87a009d164d06162c320982876bd000b936d223" %}

{% set build = 0 %}

package:
name: qpoint
version: {{ version }}

source:
url: https://github.com/arahlin/qpoint/archive/{{ version }}.tar.gz
sha256: {{ sha256 }}

build:
number: {{ build }}
skip: true # [win]
script_env:
- QPOINT_VERSION={{ version }}

requirements:
build:
- {{ compiler('c') }}
- llvm-openmp # [osx]
- libgomp # [linux]
host:
- llvm-openmp # [osx]
- libgomp # [linux]
- python
- setuptools
- numpy
# Although not a dependency, we put numba here to force
# building with a numba-compatible numpy version
- numba
# Adding astropy as a host dependency will download the current
# IERS data and store it in the package
- astropy
run:
- python
- {{ pin_compatible('numpy') }}

test:
imports:
- qpoint

about:
home: https://github.com/arahlin/qpoint
license: MIT
license_family: MIT
license_file: LICENSE
summary: Quaternion library for telescope pointing
description: |
A lightweight quaternion-based library for telescope pointing
dev_url: https://github.com/arahlin/qpoint

extra:
recipe-maintainers:
- tskisner
7 changes: 6 additions & 1 deletion pkgs/so3g/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ requirements:
- numpy
- scipy
- boost
- libboost-devel
- libboost-python-devel
- libflac
- qpoint
# Although not a dependency, we put numba here to force
# building with a numba-compatible numpy version
- numba
Expand All @@ -51,8 +54,10 @@ requirements:
- liblapack * *openblas
- python
- {{ pin_compatible('numpy') }}
- {{ pin_compatible('boost') }}
- {{ pin_compatible('libboost') }}
- {{ pin_compatible('libboost-python') }}
- {{ pin_compatible('libflac') }}
- {{ pin_compatible('qpoint') }}
- astropy
- matplotlib
- scipy
Expand Down
15 changes: 12 additions & 3 deletions pkgs/so3g/setup_requires.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
diff -urN so3g-0.1.6_orig/setup.py so3g-0.1.6/setup.py
--- so3g-0.1.6_orig/setup.py 2023-03-20 11:38:43.000000000 -0700
+++ so3g-0.1.6/setup.py 2023-06-22 11:38:42.746999553 -0700
diff -urN so3g-0.1.8_orig/setup.py so3g-0.1.8/setup.py
--- so3g-0.1.8_orig/setup.py 2023-08-17 17:04:38.000000000 -0700
+++ so3g-0.1.8/setup.py 2023-09-27 22:17:48.413193444 -0700
@@ -371,7 +371,6 @@
conf["url"] = "https://github.com/simonsobs/so3g"
conf["version"] = get_version()
Expand All @@ -9,3 +9,12 @@ diff -urN so3g-0.1.6_orig/setup.py so3g-0.1.6/setup.py
conf["install_requires"] = [
"numpy",
"astropy",
@@ -381,7 +380,7 @@
"pytz",
"pyaml",
"sqlalchemy",
- "pysqlite3-wheels",
+ "pysqlite3",
"tqdm",
"qpoint",
]
3 changes: 1 addition & 2 deletions tools/bootstrap_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ conda deactivate
echo "# condarc bootstrapped by soconda" > "${base}/.condarc"
echo "channels:" >> "${base}/.condarc"
echo " - conda-forge" >> "${base}/.condarc"
echo "changeps1: true" >> "${base}/.condarc"
echo "env_prompt: '({name}) '" >> "${base}/.condarc"
echo "changeps1: false" >> "${base}/.condarc"
echo "solver: libmamba" >> "${base}/.condarc"

0 comments on commit 4425397

Please sign in to comment.