GithubHelp home page GithubHelp logo

Comments (7)

k4ml avatar k4ml commented on May 27, 2024

This is how to reproduce this:-

wget https://bootstrap.pypa.io/bootstrap-buildout.py

Create this buildout.cfg:-

[buildout]
parts = main
extensions =
    buildout.wheel
    mr.developer

[main]
recipe = zc.recipe.egg
eggs =
    requests

Then run buildout:-

python3 bootstrap-buildout.py
./bin/buildout

from buildout.wheel.

k4ml avatar k4ml commented on May 27, 2024

It look like buildout.wheel.load() doesn't has a chance to run now to patch and inject correct function into zc.buildout.easy_install.UNPACKERS.

from buildout.wheel.

reinout avatar reinout commented on May 27, 2024

I'm getting the same error on a jenkins machine. I'm using mr.developer there, but not buildout.wheel. So it probably hasn't got anything to do with buildout.wheel, strangely.

Getting distribution for 'mr.developer==1.28'.
Got mr.developer 1.28.
mr.developer: Creating missing sources dir /code/src.
Getting distribution for 'setuptools'.
/usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
  warnings.warn(msg)
warning: no files found matching '*' under directory 'setuptools/_vendor'
Got setuptools 38.2.0.
Upgraded:
  setuptools version 38.2.0;
restarting.
Generated script '/code/bin/buildout'.
Getting distribution for 'setuptools'.
Using unpack_wheel() shim over the deprecated wheel_to_egg() hook.
Please update your wheel extension implementation for one that installs a .whl
handler in zc.buildout.easy_install.UNPACKERS
While:
  Installing.
  Checking for upgrades.
  Getting distribution for 'setuptools'.
Error: Wheels are not supported
script returned exit code 1

from buildout.wheel.

mgedmin avatar mgedmin commented on May 27, 2024

I don't think this is a buildout.wheel issue, so I've filed buildout/buildout#425

from buildout.wheel.

k4ml avatar k4ml commented on May 27, 2024

Workaround mentioned here seem to work. buildout.wheel also get loaded and executed. All packages also still installed as wheel (.ovo) in eggs/ dir.

pip.vcs: Registered VCS backend: git
pip.vcs: Registered VCS backend: hg
pip.vcs: Registered VCS backend: svn
pip.vcs: Registered VCS backend: bzr
buildout.wheel: Patched in wheel support

buildout/buildout/issues/425.

from buildout.wheel.

reinout avatar reinout commented on May 27, 2024

It looks to me like buildout.wheel isn't needed anymore. With that workaround, without buildout.wheel, setuptools does the job itself. The wheel (numpy in my case) gets installed as a .whl directory: numpy-1.13.3-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl/

The sys.path in a script also looks fine:

sys.path[0:0] = [
  '/private/tmp/reutel/eggs/requests-2.18.3-py2.py3-none-any.whl',
  '/private/tmp/reutel/eggs/numpy-1.13.3-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl',
  '/private/tmp/reutel/eggs/idna-2.5-py3.6.egg',
  '/private/tmp/reutel/eggs/chardet-3.0.4-py3.6.egg',
  '/private/tmp/reutel/eggs/certifi-2017.11.5-py3.6.egg',
  '/private/tmp/reutel/eggs/urllib3-1.22-py3.6.egg',
  ]

from buildout.wheel.

k4ml avatar k4ml commented on May 27, 2024

And removing .whl from UNPACKERS, the wheel will get installed as .egg extension. It still installed from wheel, as getting lxml for example is just a snap, instead of going through compilation step.

from buildout.wheel.

Related Issues (8)

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.