Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

設定bdist_wheel ê目的 #32

Closed
sih4sing5hong5 opened this issue Feb 19, 2021 · 4 comments
Closed

設定bdist_wheel ê目的 #32

sih4sing5hong5 opened this issue Feb 19, 2021 · 4 comments
Assignees

Comments

@sih4sing5hong5
Copy link
Contributor

sih4sing5hong5 commented Feb 19, 2021

因為有設定bdist_wheel,

distributions: sdist bdist_wheel

所致tàu KeSiài另外安wheel,研究有必要--bô

相關連結:https://pypi.org/project/wheel/

@sih4sing5hong5 sih4sing5hong5 self-assigned this Feb 19, 2021
@niauah
Copy link
Contributor

niauah commented Feb 19, 2021

https://realpython.com/python-wheels/

  • pip install ê 時陣,wheel比sdist(source distribution; 毋是binary--ê)緊
  • 若是install ê時陣是掠tar.gz,就需要走setup.py,ka-tī build wheel。所以別个專案需要ka-tī tàu wheel。像按呢:
$ python -m pip install 'uwsgi==2.0.*'
Collecting uwsgi==2.0.*
  Downloading uwsgi-2.0.18.tar.gz (801 kB)
     |████████████████████████████████| 801 kB 1.1 MB/s
Building wheels for collected packages: uwsgi
  Building wheel for uwsgi (setup.py) ... done
  Created wheel for uwsgi ... uWSGI-2.0.18-cp38-cp38-macosx_10_15_x86_64.whl
  Stored in directory: /private/var/folders/jc/8_hqsz0x1tdbp05 ...

@sih4sing5hong5
Copy link
Contributor Author

毋過我電腦會用得直接安kesi

(venv) ~/git/KauIokPoo-SuTian$ pip freeze
appdirs==1.4.4
distlib==0.3.1
filelock==3.0.12
importlib-metadata==3.4.0
packaging==20.9
pkg-resources==0.0.0
pluggy==0.13.1
py==1.10.0
pyparsing==2.4.7
six==1.15.0
toml==0.10.2
tox==3.21.4
typing-extensions==3.7.4.3
virtualenv==20.4.2
zipp==3.4.0
(venv) :~/git/KauIokPoo-SuTian$ pip install https://github.com/i3thuan5/KeSi/archive/master.zip
Collecting https://github.com/i3thuan5/KeSi/archive/master.zip
  Downloading https://github.com/i3thuan5/KeSi/archive/master.zip
     \ 23 kB 309 kB/s
Building wheels for collected packages: KeSi
  Building wheel for KeSi (setup.py) ... done
  Created wheel for KeSi: filename=KeSi-1.0.0-py3-none-any.whl size=12348 sha256=ba38c34e915ee65297ba7269538d77cb416dcb5c2c89975781d2ded8dc9a3d93
  Stored in directory: /tmp/pip-ephem-wheel-cache-ogeihls9/wheels/ba/1b/86/ab0f2d5d19d437aabc221053bffc0f0ed851cc754424853364
Successfully built KeSi
Installing collected packages: KeSi
Successfully installed KeSi-1.0.0

@sih4sing5hong5
Copy link
Contributor Author

看起來攏是local build做wheel

~/git/KauIokPoo-SuTian$ pip install KeSi --upgrade
Requirement already satisfied: KeSi in ./venv/lib/python3.7/site-packages (1.0.0)

Collecting KeSi
  Downloading KeSi-1.1.0.tar.gz (9.5 kB)
Building wheels for collected packages: KeSi
  Building wheel for KeSi (setup.py) ... done
  Created wheel for KeSi: filename=KeSi-1.1.0-py3-none-any.whl size=12350 sha256=067598766b021ab51aecb1fcf20dd49abf4325b58aa2b0c57613a0a2932e8fa3
  Stored in directory: /home/fafofafoy/.cache/pip/wheels/be/6a/a2/282c14b5d778f699a9421a9009c6ab9ad3369db06f0ceab32e
Successfully built KeSi
Installing collected packages: KeSi
  Attempting uninstall: KeSi
    Found existing installation: KeSi 1.0.0
    Uninstalling KeSi-1.0.0:
      Successfully uninstalled KeSi-1.0.0
Successfully installed KeSi-1.1.0

@sih4sing5hong5
Copy link
Contributor Author

@niauah 你講了著,應該是KeSi本身就愛 wheel build好勢。所致是CI bô build出來,所致你ê電腦掠source ài build時ài wheel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants