GithubHelp home page GithubHelp logo

Cached build of setup.py about cibuildwheel HOT 7 CLOSED

pypa avatar pypa commented on May 21, 2024
Cached build of setup.py

from cibuildwheel.

Comments (7)

YannickJadoul avatar YannickJadoul commented on May 21, 2024 2

I think I see the problem. Correct me if I'm wrong but I assume you have already uploaded a wheel to PyPI? So when you run the build for the first Python version, you get

Executing: pip wheel gdxcc -w c:\users\appveyor\appdata\local\temp\1\cibuildwheelgp0rqv\built_wheel --no-deps
Collecting gdxcc
  Downloading gdxcc-7.post2492.tar.gz (72kB)
Building wheels for collected packages: gdxcc
  Running setup.py bdist_wheel for gdxcc: started
  Running setup.py bdist_wheel for gdxcc: finished with status 'done'

I.e., instead of interpreting the gdxcc as subfolder, it's interpreted as a PyPI package and the source build is downloaded. That's why Using cached gdxcc-7.post2492.tar.gz pops up for the next Python version: that's not a cibuildwheel or AppVeyor cache, that's just pip having downloaded that before.

Quick fix to test your separate branch: use a different version number and don't upload it automatically to the PyPI!

Meanwhile I'll have a quick look to see if I can fix the call to pip wheel in cibuildwheel ...

from cibuildwheel.

YannickJadoul avatar YannickJadoul commented on May 21, 2024 1

Ha, that's of course an even easier solution, just prepending './' :-D

I don't think the unicode error has something to do with cibuildwheel, but I was just looking at the error, and it seems it's related to MANIFEST.in. So I downloaded that file, and ... there is apparently an invisible 0x90 character in there (see screenshot) that distutils is complaining about: UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 60: character maps to <undefined>?

screenshot from 2017-12-30 14-00-14

from cibuildwheel.

kavvkon avatar kavvkon commented on May 21, 2024 1

Well, that was a bit embarrassing :) Seems to work fine now, many thanks for the help and this nice package!

from cibuildwheel.

YannickJadoul avatar YannickJadoul commented on May 21, 2024

I've just submitted a PR, #51. If tests run fine (they seem to be going well), I suggest you'd try to use that in your script (i.e., pip install cibuildwheel from https://github.com/YannickJadoul/cibuildwheel/archive/single-subdir-project-fix.zip)

from cibuildwheel.

kavvkon avatar kavvkon commented on May 21, 2024

Thanks for the fast reply. Indeed it was downloading it, even after the version bump. I fixed it by explicitly calling the directory as follows:
- cibuildwheel ./gdxcc --output-dir wheelhouse

I have still the unicode error though and I cannot track it. Locally it builds fine. Do you think it is related with this package?

from cibuildwheel.

YannickJadoul avatar YannickJadoul commented on May 21, 2024

Don't worry. Rather, thanks for finding this issue in cibuildwheel with the subfolder/package!

from cibuildwheel.

joerick avatar joerick commented on May 21, 2024

Top work debugging this @YannickJadoul! the PR's merged now, so this should be fixed.

from cibuildwheel.

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.