Coder Social home page Coder Social logo

pythreejs-feedstock's Introduction

About pythreejs

Home: https://github.com/jupyter-widgets/pythreejs

Package license: BSD-3-Clause

Feedstock license: BSD-3-Clause

Summary: A Python / ThreeJS bridge utilizing the Jupyter widget infrastructure.

Current build status

All platforms:

Current release info

Name Downloads Version Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms

Installing pythreejs

Installing pythreejs from the conda-forge channel can be achieved by adding conda-forge to your channels with:

conda config --add channels conda-forge
conda config --set channel_priority strict

Once the conda-forge channel has been enabled, pythreejs can be installed with conda:

conda install pythreejs

or with mamba:

mamba install pythreejs

It is possible to list all of the versions of pythreejs available on your platform with conda:

conda search pythreejs --channel conda-forge

or with mamba:

mamba search pythreejs --channel conda-forge

Alternatively, mamba repoquery may provide more information:

# Search all versions available on your platform:
mamba repoquery search pythreejs --channel conda-forge

# List packages depending on `pythreejs`:
mamba repoquery whoneeds pythreejs --channel conda-forge

# List dependencies of `pythreejs`:
mamba repoquery depends pythreejs --channel conda-forge

About conda-forge

Powered by NumFOCUS

conda-forge is a community-led conda channel of installable packages. In order to provide high-quality builds, the process has been automated into the conda-forge GitHub organization. The conda-forge organization contains one repository for each of the installable packages. Such a repository is known as a feedstock.

A feedstock is made up of a conda recipe (the instructions on what and how to build the package) and the necessary configurations for automatic building using freely available continuous integration services. Thanks to the awesome service provided by Azure, GitHub, CircleCI, AppVeyor, Drone, and TravisCI it is possible to build and upload installable packages to the conda-forge Anaconda-Cloud channel for Linux, Windows and OSX respectively.

To manage the continuous integration and simplify feedstock maintenance conda-smithy has been developed. Using the conda-forge.yml within this repository, it is possible to re-render all of this feedstock's supporting files (e.g. the CI configuration files) with conda smithy rerender.

For more information please check the conda-forge documentation.

Terminology

feedstock - the conda recipe (raw material), supporting scripts and CI configuration.

conda-smithy - the tool which helps orchestrate the feedstock. Its primary use is in the construction of the CI .yml files and simplify the management of many feedstocks.

conda-forge - the place where the feedstock and smithy live and work to produce the finished article (built conda distributions)

Updating pythreejs-feedstock

If you would like to improve the pythreejs recipe or build a new package version, please fork this repository and submit a PR. Upon submission, your changes will be run on the appropriate platforms to give the reviewer an opportunity to confirm that the changes result in a successful build. Once merged, the recipe will be re-built and uploaded automatically to the conda-forge channel, whereupon the built conda packages will be available for everybody to install and use from the conda-forge channel. Note that all branches in the conda-forge/pythreejs-feedstock are immediately built and any created packages are uploaded, so PRs should be based on branches in forks and branches in the main repository should only be used to build distinct package versions.

In order to produce a uniquely identifiable distribution:

  • If the version of a package is not being increased, please add or increase the build/number.
  • If the version of a package is being increased, please remember to return the build/number back to 0.

Feedstock Maintainers

pythreejs-feedstock's People

Contributors

bdice avatar bgruening avatar conda-forge-admin avatar conda-forge-curator[bot] avatar jakirkham avatar jasongrout avatar regro-cf-autotick-bot avatar sylvaincorlay avatar vidartf avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pythreejs-feedstock's Issues

noarch support?

Can this package be defined as noarch? I'm running Linux on a POWER9 system (ppc64le) and it seems I can't install this package because it's only built for linux-64.

https://conda-forge.org/docs/maintainer/knowledge_base.html#noarch-builds

From what I can tell, this package adheres to the requirements for noarch. Anecdotally, I've found it's slightly easier to maintain conda-forge recipes that are noarch.

I can make a PR with this change if desired.

Post-link scripts fails over `numpy` missing

The postlink script for pythreejs fails because numpy is missing from the environment upon call of the script.

Since we cannot guarantee that any package is present at post-link time , and anything may be imported by the top-level __init__.py , I suggest that we drop post-link scripts in the pythreejs feedstock and other widget feedstocks. This has bitten us in many cases, so I don't believe we should push this as a good pattern to use moving forward.

The consequence will be that users of notebook<5.4 will need to manually enable the nbextension.

cc @jasongrout @vidartf @maartenbreddels

Conda packages doesn't leave the extensions in $prefix/share/jupyter/nbextensions

$ conda create -c conda-forge -n pythreejs pythreejs
$ ls ~/miniconda3/envs/pythreejs/share/jupyter/nbextensions                                                         pythreejs
jupyter-datawidgets jupyter-js-widgets  jupyter-scales
# Note the missing jupyter-threejs
$ conda uninstall pythreejs
$ pip install pythreejs
$ ls ~/miniconda3/envs/pythreejs/share/jupyter/nbextensions                                                         pythreejs
jupyter-datawidgets jupyter-js-widgets  jupyter-scales      jupyter-threejs
# but pip installs it

OSX build failing

While the CI for #17 succeeded the subsequent build from master fails for OSX: https://travis-ci.org/conda-forge/pythreejs-feedstock/builds/389298550 .

Details for posterity:

Python 2 trace
copying build/lib/pythreejs/pythreejs.py -> /Users/travis/miniconda3/conda-bld/pythreejs_1528450377932/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python2.7/site-packages/pythreejs
error: [Errno 35] Resource temporarily unavailable
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
Traceback (most recent call last):
  File "/Users/travis/miniconda3/bin/conda-build", line 11, in 
    sys.exit(main())
  File "/Users/travis/miniconda3/lib/python3.6/site-packages/conda_build/cli/main_build.py", line 420, in main
    execute(sys.argv[1:])
  File "/Users/travis/miniconda3/lib/python3.6/site-packages/conda_build/cli/main_build.py", line 411, in execute
    verify=args.verify)
  File "/Users/travis/miniconda3/lib/python3.6/site-packages/conda_build/api.py", line 200, in build
    notest=notest, need_source_download=need_source_download, variants=variants)
  File "/Users/travis/miniconda3/lib/python3.6/site-packages/conda_build/build.py", line 2177, in build_tree
    notest=notest,
  File "/Users/travis/miniconda3/lib/python3.6/site-packages/conda_build/build.py", line 1417, in build
    utils.check_call_env(cmd, env=env, cwd=src_dir, stats=build_stats)
  File "/Users/travis/miniconda3/lib/python3.6/site-packages/conda_build/utils.py", line 310, in check_call_env
    return _func_defaulting_env_to_os_environ('call', *popenargs, **kwargs)
  File "/Users/travis/miniconda3/lib/python3.6/site-packages/conda_build/utils.py", line 290, in _func_defaulting_env_to_os_environ
    raise subprocess.CalledProcessError(proc.returncode, _args)
subprocess.CalledProcessError: Command '['/bin/bash', '-e', '/Users/travis/miniconda3/conda-bld/pythreejs_1528450377932/work/conda_build.sh']' returned non-zero exit status 1.
The command "conda build ./recipe -m ./.ci_support/${CONFIG}.yaml" exited with 1.
7.00s$ upload_or_check_non_existence ./recipe conda-forge --channel=main -m ./.ci_support/${CONFIG}.yaml
Adding in variants from internal_defaults
Adding in variants from ./.ci_support/osx_python2.7.yaml
Attempting to finalize metadata for pythreejs
Solving environment: ...working... done
Solving environment: ...working... done
Processing pythreejs
[ERROR] File "/Users/travis/miniconda3/conda-bld/osx-64/pythreejs-1.1.0-py27_1.tar.bz2" does not exist
Traceback (most recent call last):
  File "/Users/travis/miniconda3/bin/upload_or_check_non_existence", line 131, in 
    main()
  File "/Users/travis/miniconda3/bin/upload_or_check_non_existence", line 121, in main
    upload(cli, fname, owner, channel)
  File "/Users/travis/miniconda3/bin/upload_or_check_non_existence", line 68, in upload
    env=os.environ)
  File "/Users/travis/miniconda3/lib/python3.6/subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['anaconda', '--quiet', '-t', '/var/folders/vy/rcv48w3j4w79llzf_x6qnvw40000gn/T/tmpavqh9v59/binstar.token', 'upload', '/Users/travis/miniconda3/conda-bld/osx-64/pythreejs-1.1.0-py27_1.tar.bz2', '--user=conda-forge', '--channel=main']' returned non-zero exit status 1.
The command "upload_or_check_non_existence ./recipe conda-forge --channel=main -m ./.ci_support/${CONFIG}.yaml" exited with 1.
Python 3 trace
copying build/lib/pythreejs/math/interpolants/__init__.py -> /Users/travis/miniconda3/conda-bld/pythreejs_1528450843407/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.5/site-packages/pythreejs/math/interpolants
copying build/lib/pythreejs/math/interpolants/CubicInterpolant_autogen.py -> /Users/travis/miniconda3/conda-bld/pythreejs_1528450843407/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.5/site-packages/pythreejs/math/interpolants
copying build/lib/pythreejs/math/interpolants/DiscreteInterpolant_autogen.py -> /Users/travis/miniconda3/conda-bld/pythreejs_1528450843407/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.5/site-packages/pythreejs/math/interpolants
error: [Errno 35] write could not complete without blocking
copying build/lib/pythreejs/math/interpolants/LinearInterpolant_autogen.py -> /Users/travis/miniconda3/conda-bld/pythreejs_1528450843407/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.5/site-packages/pythreejs/math/interpolants
Exception ignored in: <_io.TextIOWrapper name='' mode='w' encoding='UTF-8'>
BlockingIOError: [Errno 35] write could not complete without blocking
Traceback (most recent call last):
  File "/Users/travis/miniconda3/bin/conda-build", line 11, in 
    sys.exit(main())
  File "/Users/travis/miniconda3/lib/python3.6/site-packages/conda_build/cli/main_build.py", line 420, in main
    execute(sys.argv[1:])
  File "/Users/travis/miniconda3/lib/python3.6/site-packages/conda_build/cli/main_build.py", line 411, in execute
    verify=args.verify)
  File "/Users/travis/miniconda3/lib/python3.6/site-packages/conda_build/api.py", line 200, in build
    notest=notest, need_source_download=need_source_download, variants=variants)
  File "/Users/travis/miniconda3/lib/python3.6/site-packages/conda_build/build.py", line 2177, in build_tree
    notest=notest,
  File "/Users/travis/miniconda3/lib/python3.6/site-packages/conda_build/build.py", line 1417, in build
    utils.check_call_env(cmd, env=env, cwd=src_dir, stats=build_stats)
  File "/Users/travis/miniconda3/lib/python3.6/site-packages/conda_build/utils.py", line 310, in check_call_env
    return _func_defaulting_env_to_os_environ('call', *popenargs, **kwargs)
  File "/Users/travis/miniconda3/lib/python3.6/site-packages/conda_build/utils.py", line 290, in _func_defaulting_env_to_os_environ
    raise subprocess.CalledProcessError(proc.returncode, _args)
subprocess.CalledProcessError: Command '['/bin/bash', '-e', '/Users/travis/miniconda3/conda-bld/pythreejs_1528450843407/work/conda_build.sh']' returned non-zero exit status 1.
The command "conda build ./recipe -m ./.ci_support/${CONFIG}.yaml" exited with 1.
7.00s$ upload_or_check_non_existence ./recipe conda-forge --channel=main -m ./.ci_support/${CONFIG}.yaml
Adding in variants from internal_defaults
Adding in variants from ./.ci_support/osx_python3.5.yaml
Attempting to finalize metadata for pythreejs
Solving environment: ...working... done
Solving environment: ...working... done
Processing pythreejs
[ERROR] File "/Users/travis/miniconda3/conda-bld/osx-64/pythreejs-1.1.0-py35_1.tar.bz2" does not exist
Traceback (most recent call last):
  File "/Users/travis/miniconda3/bin/upload_or_check_non_existence", line 131, in 
    main()
  File "/Users/travis/miniconda3/bin/upload_or_check_non_existence", line 121, in main
    upload(cli, fname, owner, channel)
  File "/Users/travis/miniconda3/bin/upload_or_check_non_existence", line 68, in upload
    env=os.environ)
  File "/Users/travis/miniconda3/lib/python3.6/subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['anaconda', '--quiet', '-t', '/var/folders/vy/rcv48w3j4w79llzf_x6qnvw40000gn/T/tmpnfrm5mnu/binstar.token', 'upload', '/Users/travis/miniconda3/conda-bld/osx-64/pythreejs-1.1.0-py35_1.tar.bz2', '--user=conda-forge', '--channel=main']' returned non-zero exit status 1.
The command "upload_or_check_non_existence ./recipe conda-forge --channel=main -m ./.ci_support/${CONFIG}.yaml" exited with 1.

Does anybody know what could be causing this, or where the cause of the issue is (my code, travis, conda code)? I have no clue...

Ping @conda-forge/core , ref conda-forge/conda-forge.github.io#599.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.