Coder Social home page Coder Social logo

zip safe? about nominally HOT 4 CLOSED

vaneseltine avatar vaneseltine commented on July 18, 2024
zip safe?

from nominally.

Comments (4)

vaneseltine avatar vaneseltine commented on July 18, 2024

Currently, this analysis is extremely conservative: it will consider the project unsafe if it contains any C extensions or datafiles whatsoever. This does not mean that the project can't or won't work as a zipfile! It just means that the bdist_egg authors aren't yet comfortable asserting that the project will work. If the project contains no C or data files, and does no file or path introspection or source code manipulation, then there is an extremely solid chance the project will work when installed as a zipfile. (And if the project uses pkg_resources for all its data file access, then C extensions and other data files shouldn't be a problem at all. See the Accessing Data Files at Runtime section above for more information.)

from nominally.

vaneseltine avatar vaneseltine commented on July 18, 2024

So it matters for the Python package being able to:

  1. find examples (if we care about those in package)
  2. connect those examples to their data (but it wouldn't make much sense to use those dirs anyway)
  3. finding test data (but that shouldn't matter for the package)

Therefore make this dependent on #23

from nominally.

vaneseltine avatar vaneseltine commented on July 18, 2024

http://peak.telecommunity.com/DevCenter/setuptools#accessing-data-files-at-runtime

from nominally.

vaneseltine avatar vaneseltine commented on July 18, 2024

Spun off examples into https://github.com/vaneseltine/nominally-examples

Accordingly, removed any need here for introspection and path handling from installed package.

from nominally.

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.