GithubHelp home page GithubHelp logo

Comments (8)

gotcha avatar gotcha commented on May 26, 2024 1

Fix released in https://pypi.org/project/zc.buildout/3.0.0rc3/

from buildout.

mauritsvanrees avatar mauritsvanrees commented on May 26, 2024 1

Jenkins has succeeded as well. I have merged my PR: the Plone 6.0 coredev buildout is now using release candidate 3.

from buildout.

gotcha avatar gotcha commented on May 26, 2024

My current understanding is the following:

setuptools is vendoring distutils. It installs a hack to ensure that its copy of distutils is used instead of the stdlib version. Unfortunately, there is still an issue with pip (pypa/pip#8761) where the mechanism fails and where setuptools allow pip to use the stdlib version.

We are in the dark spot of the problem with zc.buildout>3 since it combines setuptoolsand pip.

from buildout.

gotcha avatar gotcha commented on May 26, 2024
  ...
  File "/foo/env/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 57, in __init__
    raise TypeError("dist must be a Distribution instance")
TypeError: dist must be a Distribution instance

This is another symptom of the same issue with setuptools and pip.

from buildout.

gotcha avatar gotcha commented on May 26, 2024

@mauritsvanrees @icemac Would you try that latest release ?

I hope it is the last release candidate.

from buildout.

mauritsvanrees avatar mauritsvanrees commented on May 26, 2024

I am trying it out in plone/buildout.coredev#786 with latest setuptools 62.0.0.

So far so good:

  • All GitHub Actions have succeeded, on all combinations of Python 3.7/3.8/3.9 and Ubuntu/Mac/Windows. It can be that all needed packages were already cached though, so nothing needed to be downloaded or installed. But sounds good already.
  • I started Jenkins tests, but those take longer.
  • Locally a buildout run using my eggs cache worked fine.
  • A local buildout run without downloads or eggs cache is still running. Only problem so far is that I had to restart a few times, but this is due to timeouts when downloading from files.pythonhosted.org, so it has nothing to do with the release candidate.

Thanks a lot!

from buildout.

mauritsvanrees avatar mauritsvanrees commented on May 26, 2024

A local buildout run without downloads or eggs cache is still running.

Update: it has finished successfully, after installing 309 packages:

$ ls -1 downloads/dist/ | wc -l
     309
$ ls -1 eggs/cp39/ | wc -l
     309
$ du -sh downloads/dist/ eggs/cp39/
 52M	downloads/dist/
205M	eggs/cp39/

from buildout.

gotcha avatar gotcha commented on May 26, 2024

@mauritsvanrees

Thanks for testing it ! And for Plone 6 coredev.

Before cutting a 3.0 release, I still would like to test a buildout that pins a lower version of setuptools than the one installed in the virtualenv.

My intuition tells me that it is one of the cases where the race condition mentioned in pypa/pip#8761 could happen. But I could be wrong.

from buildout.

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.