GithubHelp home page GithubHelp logo

Add fpoffline package about desiconda HOT 9 OPEN

desihub avatar desihub commented on August 19, 2024
Add fpoffline package

from desiconda.

Comments (9)

sbailey avatar sbailey commented on August 19, 2024 1

it would fix the problem (I think) for the purposes of the tagged installation, though the main installation would remain without the executables. Please ping me when the tag is ready and we'll try that and then iterate if the tag installation is also broken.

from desiconda.

sbailey avatar sbailey commented on August 19, 2024

I ran desiInstall fpoffline main as the desi user to install it as a module; please try module load fpoffline and try using it to see if it is configured correctly (it passes basic ability to load the module, but other that that I don't know what to try).

If that works, you can then add it to scripts/bootstrap-desi.sh to be included by default in future desiconda releases. When you make tags, we can also install those.

from desiconda.

dkirkby avatar dkirkby commented on August 19, 2024

Thanks. I tested that I can import and run fpoffline modules, but it looks like the executable script generated by pip install . (via setup.py entry_points) is not created or, at least, not visible via $PATH.

Looking desimeter, it seems that executable scripts need to be under a top-level bin/ folder? Is there a way to accomplish that and still use the setup.py entry_points machinery?

from desiconda.

sbailey avatar sbailey commented on August 19, 2024

I think desiInstall would trigger entry_points for installations of tags, but main and other branches use "in place installations" of a bare git checkout adding bin/ to $PATH and either py/ or the top level directory to $PYTHONPATH. This enables "git pull" to update the installation without further steps, and allows developers to do the equivalent for their own checkouts so that edits are immediately visible without having to go through an installation step.

FTR: I'm also aware of "python setup.py develop" as something in-between, but that gets confused when the version number changes, while the in-place installations are robust to that.

i.e. I recognize that entry_points is a common python practice, but we discourage using it and encourage putting executable scripts in bin/, explicitly wrapping functions from the module, i.e. doing ahead of time what entry_points otherwise does at installation time.

from desiconda.

dkirkby avatar dkirkby commented on August 19, 2024

I should make a tag anyway and it sounds like this would fix the problem?

from desiconda.

Related Issues (20)

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.