CDAT / lats

legacy lats library code
0 stars 1 forks source link

Revisit conda-forge recipe #4

Open durack1 opened 4 years ago

durack1 commented 4 years ago

An attempt back in Jan 2019 was made to get this library hosted by conda-forge, see conda-forge/staged-recipes#7518. Due to errors the package has not been hosted, and so some work is required to revive this PR and get it approved for conda-forge

@doutriaux1

doutriaux1 commented 4 years ago

ezget is in I believe. Best candidate that come to mind to do this are @mauzey1 @painter1

doutriaux1 commented 4 years ago

@jasonb5 and @muryanto1 might be able to help as well.

mauzey1 commented 4 years ago

@doutriaux1 Here's what I have found so far when looking through conda-forge/staged-recipes#7518.

The commit https://github.com/CDAT/staged-recipes/commit/3b8a0b6f046116848840e8a9ac7511ec2665341d, which changed how libnetcdf was pinned, had an issue with the LALInference library.

checking for LALINFERENCE... yes
configure: error: could not find the LALInference library
checking for LALInferenceAddVariable in -llalinference... no
Traceback (most recent call last):
  File "/home/conda/.ci_support/build_all.py", line 134, in <module>
    build_all(args.recipes_dir, args.arch)
  File "/home/conda/.ci_support/build_all.py", line 68, in build_all
    build_folders(recipes_dir, old_comp_folders, arch, channel_urls)
  File "/home/conda/.ci_support/build_all.py", line 124, in build_folders
    conda_build.api.build(list(d.keys()), config=get_config(arch, channel_urls))
  File "/opt/conda/lib/python3.6/site-packages/conda_build/api.py", line 208, in build
    notest=notest, need_source_download=need_source_download, variants=variants)
  File "/opt/conda/lib/python3.6/site-packages/conda_build/build.py", line 2311, in build_tree
    notest=notest,
  File "/opt/conda/lib/python3.6/site-packages/conda_build/build.py", line 1477, in build
    cwd=src_dir, stats=build_stats)
  File "/opt/conda/lib/python3.6/site-packages/conda_build/utils.py", line 374, in check_call_env
    return _func_defaulting_env_to_os_environ('call', *popenargs, **kwargs)
  File "/opt/conda/lib/python3.6/site-packages/conda_build/utils.py", line 354, in _func_defaulting_env_to_os_environ
    raise subprocess.CalledProcessError(proc.returncode, _args)
subprocess.CalledProcessError: Command '['/bin/bash', '-e', '/home/conda/feedstock_root/build_artifacts/lalapps_1547659671054/work/conda_build.sh']' returned non-zero exit status 1.
Exited with code 1

The commit https://github.com/CDAT/staged-recipes/commit/44d989a13a569e6a7a386403529ba9e7eac8469a, which pinned hdf5 again, also added the files .gitattributes, .gitignore, and LICENSE.txt into the recipes directory. Which caused the build script to erroneously treat them as directories.

+ python /home/conda/.ci_support/build_all.py /home/conda/conda-recipes
Building r-clustercrit,lats,plaster_pastedeploy,r-tkrplot,r-recordlinkage,.gitignore,r-lasso2,r-rlabkey,treecorr,safe-netrc,.github,r-logicreg,pyramid,filesystem-spec,r-gganimate,.circleci,r-mongolite,r-kza,lalapps,r-pdftools,r-readstata13,plaster,r-lpsolveapi,hupper,.gitattributes,r-dppackage,r-distrex,r-diffusr,r-rhpcblasctl,LICENSE.txt with conda-forge/label/main
Setting build arch. This is only useful when pretending to be on another arch, such as for rendering necessary dependencies on a non-native arch. I trust that you know what you're doing.
rendering /home/conda/conda-recipes/r-clustercrit for linux-64
Setting build platform. This is only useful when pretending to be on another platform, such as for rendering necessary dependencies on a non-native platform. I trust that you know what you're doing.
rendering /home/conda/conda-recipes/lats for linux-64
rendering /home/conda/conda-recipes/plaster_pastedeploy for linux-64
rendering /home/conda/conda-recipes/r-tkrplot for linux-64
rendering /home/conda/conda-recipes/r-recordlinkage for linux-64
Traceback (most recent call last):
  File "/home/conda/.ci_support/build_all.py", line 134, in <module>
    build_all(args.recipes_dir, args.arch)
  File "/home/conda/.ci_support/build_all.py", line 68, in build_all
    build_folders(recipes_dir, old_comp_folders, arch, channel_urls)
  File "/home/conda/.ci_support/build_all.py", line 108, in build_folders
    config=config, finalize=False)
  File "/home/conda/.ci_support/compute_build_graph.py", line 390, in construct_graph
    raise ValueError("Specified folder {} does not exist".format(recipe_dir))
ValueError: Specified folder /home/conda/conda-recipes/.gitignore does not exist
Exited with code 1
doutriaux1 commented 4 years ago

I would recommend copy the recipe and start from scratch.

durack1 commented 4 years ago

@mauzey1 thanks for taking a look at this, it's great to get these open issues fixed, cleaned up and resolved