Giter Site home page Giter Site logo

Comments (8)

dpo avatar dpo commented on September 26, 2024

What's in /tmp that requires a rebuild?

from cutest.jl.

timholy avatar timholy commented on September 26, 2024

/tmp gets wiped when you reboot, and

$ cat cutestenv.jl 
PATH = get(ENV, "PATH", "")
MANPATH = get(ENV, "MANPATH", "")
LD_LIBRARY_PATH = get(ENV, "LD_LIBRARY_PATH", "")
ENV["ARCHDEFS"] = "/tmp/tmplJ4BFj/archdefs"
ENV["CUTEST"] = "/tmp/tmplJ4BFj/cutest"
ENV["SIFDECODE"] = "/tmp/tmplJ4BFj/sifdecode"
ENV["MASTSIF"] = "/tmp/tmplJ4BFj/mastsif"
ENV["MYARCH"] = "pc64.lnx.gfo"
ENV["PATH"] = "/tmp/tmplJ4BFj/cutest/bin:/tmp/tmplJ4BFj/sifdecode/bin:$PATH"
ENV["MANPATH"] = "/tmp/tmplJ4BFj/cutest/man:/tmp/tmplJ4BFj/sifdecode/man:$MANPATH"
ENV["LD_LIBRARY_PATH"] = "/tmp/tmplJ4BFj/lib:$LD_LIBRARY_PATH"

from cutest.jl.

timholy avatar timholy commented on September 26, 2024

Perhaps this is an unintentional consequence of the build script writing its log files to a directory created by mktempdir? I naively assumed this was intentional.

from cutest.jl.

abelsiqueira avatar abelsiqueira commented on September 26, 2024

Really not intentional. Looks like a result of this line.

from cutest.jl.

timholy avatar timholy commented on September 26, 2024

I'll fix. I'm also curious about this line. Why delete the file if everything is already installed?

from cutest.jl.

dpo avatar dpo commented on September 26, 2024

Really not intentional. Looks like a result of this line.

Ah I guess I naively thought cd would "come back" when the function exits.

I'm also curious about this line. Why delete the file if everything is already installed?

The idea is that if validate_cutest() returns successfully, a pre-existing installation of CUTEst has been found (outside of Julia, e.g., with Homebrew). In that case cutestenv.jl should be removed because the environment variables in it may not point to the location of the working installation.

from cutest.jl.

timholy avatar timholy commented on September 26, 2024

I naively thought cd would "come back" when the function exits.

It does if you use the do-block form.

In that case cutestenv.jl should be removed because the environment variables in it may not point to the location of the working installation.

Ah, thanks for explaining.

See #104.

from cutest.jl.

abelsiqueira avatar abelsiqueira commented on September 26, 2024

Closed by #104

from cutest.jl.

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.