From fd3baa06f759e627b3f395dd47234248fad48690 Mon Sep 17 00:00:00 2001 From: Chris Barker Date: Tue, 18 Jun 2024 16:02:58 -0700 Subject: [PATCH] remove old conda recipes --- conda_recipe/README.txt | 29 --------- conda_recipe/conda_build_config.yaml | 4 -- conda_recipe/meta.yaml | 75 ------------------------ py_gnome/py_gnome_conda_recipe/build.sh | 16 ----- py_gnome/py_gnome_conda_recipe/meta.yaml | 32 ---------- 5 files changed, 156 deletions(-) delete mode 100644 conda_recipe/README.txt delete mode 100644 conda_recipe/conda_build_config.yaml delete mode 100644 conda_recipe/meta.yaml delete mode 100644 py_gnome/py_gnome_conda_recipe/build.sh delete mode 100644 py_gnome/py_gnome_conda_recipe/meta.yaml diff --git a/conda_recipe/README.txt b/conda_recipe/README.txt deleted file mode 100644 index 5f6a5434f..000000000 --- a/conda_recipe/README.txt +++ /dev/null @@ -1,29 +0,0 @@ -Recipe for building a conda package locally. - -This is a bit fragile -- ideally we would generate the build configuration -automatically, so that it can be kept in sync with new dependencies, etc. - -Building the conda package should be as easy as:: - - > conda install conda-build # make sure you have that! - - > cd conda_recipe # this dir - - > conda build . - - -The trick is then how to install it. If you point conda install at teh packge directly, it will install, but not use the dependencies, which is not so useful. I had success on my machine doing:: - - > conda install -c /Users/chris.barker/miniconda3/envs/gnome/conda-bld/osx-64/ py_gnome - -But then we'll need to figure out that path on the CI or wherever. - - -NOTES: - -The python and numpy versions are specified in the `conda_build_config.yaml` file. - -This is because PyGNOME uses the C APIs of both python and numpy, so the pacakge will nly work with the versions it was built against. - -This could be used to build multiple versions, but only one for now. - diff --git a/conda_recipe/conda_build_config.yaml b/conda_recipe/conda_build_config.yaml deleted file mode 100644 index 28fb830e7..000000000 --- a/conda_recipe/conda_build_config.yaml +++ /dev/null @@ -1,4 +0,0 @@ -python: - - 3.9 -numpy: - - 1.22 diff --git a/conda_recipe/meta.yaml b/conda_recipe/meta.yaml deleted file mode 100644 index de281df61..000000000 --- a/conda_recipe/meta.yaml +++ /dev/null @@ -1,75 +0,0 @@ -{% set name = "py_gnome" %} -{% set version = "1.1.4" %} - -package: - name: {{ name|lower }} - version: {{ version }} - -source: - # url: https://github.com/NOAA-ORR-ERD/adios_oil_database/archive/v{{ version }}.tar.gz - # sha256: 4b2b1c7c68b278aeb07d1d1715e26fb96bc6c19b82085d2ccb0568a20ef3e5df - path: ../ - -build: - number: 0 - script: cd py_gnome && {{ PYTHON }} setup.py install - -requirements: - host: - - python {{ python }} - - pip - - setuptools>=62 - - cython=0.29.* - - gitpython - - numpy {{ numpy }} - - build: - - {{ compiler('cxx') }} - - - run: - - python {{ python }} - - numpy {{ numpy }} - - trimesh - - shapely - - pyproj - - mapbox_earcut - - scipy - - gsw - - psutil - - pyzmq - - python-dateutil - - geojson - - colander - - tblib - - netCDF4 - - pyshp - - - gridded=0.3.0 - - pynucos - - cell_tree2d - - py_gd=2.* - -test: - requires: - - pytest - - pytest-raises >=0.11 - imports: - - gnome - -about: - home: https://github.com/NOAA-ORR-ERD/PyGnome - license: CC0-1.0 - # license_file: LICENSE.txt - summary: PyGNOME - description: | - PyGNOME: Oil spill fate and transport model and particle tracking - framework. Part of the GNOME Suite, and the engine behind WebGNOME: - https://gnome.orr.noaa.gov - dev_url: https://github.com/NOAA-ORR-ERD/PyGnome - -extra: - recipe-maintainers: - - ChrisBarker-NOAA - - JamesMakela-NOAA - - jay-hennen diff --git a/py_gnome/py_gnome_conda_recipe/build.sh b/py_gnome/py_gnome_conda_recipe/build.sh deleted file mode 100644 index 161417dc2..000000000 --- a/py_gnome/py_gnome_conda_recipe/build.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -# from the Anaconda mailing list: set the conda build dir to the local source - -SRC_DIR=$RECIPE_DIR/.. -cd $SRC_DIR - -echo "current directory for building" -echo `pwd` -#$PYTHON setup.py --quiet install -$PYTHON setup.py install - -echo "after the python command" - - - diff --git a/py_gnome/py_gnome_conda_recipe/meta.yaml b/py_gnome/py_gnome_conda_recipe/meta.yaml deleted file mode 100644 index fd7b840f4..000000000 --- a/py_gnome/py_gnome_conda_recipe/meta.yaml +++ /dev/null @@ -1,32 +0,0 @@ -package: - name: py_gnome - version: 0.1.1 - -# no source -- source is local - -requirements: - build: - - python - - setuptools - - numpy - - netcdf4 - - cython - run: - - oil_library - - python - - pytest - - scipy - - numpy - - netcdf4 - - colander - - pil - - pyzmq - - repoze.lru - - six - - geojson - - -about: - home: https://github.com/NOAA-ORR-ERD/PyGnome - license: Public Domain -