Git Product home page Git Product logo

Comments (5)

elthariel avatar elthariel commented on August 15, 2024

Also, it's worth stating that my pex is big enough that using PEX_NOCACHE is not an option (and it would be a terrible UX for my users)

from python-rules.

elthariel avatar elthariel commented on August 15, 2024

What I think I'd like to do, is to use that content hash of the "_%s#lib" sub-target

from python-rules.

elthariel avatar elthariel commented on August 15, 2024

Hum... This is sadly not a fixed problem. Something is wrong with my implementation, and your input, dear @samwestmoreland would be welcomed.

So this works when the content of the sources of the python_binary get modified, but not when the files of dependent python_libraries are changed.

from python-rules.

elthariel avatar elthariel commented on August 15, 2024

Do you think it could work to split the last rule which gathers everything in two ?

  • One that would gather all the .pex.zip, .wheel and resources
  • One that would add the preamble and produce the final pex

We would then be able to put the rule which inject the stamp in the pex in the middle and it would have all the resources available to compute a proper hash.

Do you think it could work ?

from python-rules.

samwestmoreland avatar samwestmoreland commented on August 15, 2024

Hey, right I see. Yeap, I think that sounds very reasonable. You essentially want to figure out everything you need that you want to be in the hash, i.e. the deps and the lib_rule, and build them beforehand in order to generate the stamp. Are you happy to create the PR? I can help out if you get stuck!

from python-rules.

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.