0

私はpygameを必要とするプロジェクトを書いています。

pygame wikiの指示に従って、pythonにpygameをインストールしました。

pip install hg+http://bitbucket.org/pygame/pygame

作成中の wheel ディレクトリに pygame を追加したいと思います。私はコマンドでこれをやろうとしています

pip wheel --wheel-dir=wheels/linux64 pygame

--no-index--find-links=https://bitbucket.org/pygame/pygame--allow-unverified pygame--allow-external pygameオプションを追加してみました。

出力は常に、要件 pygame を満たすパッケージが見つからないという行に沿ったものです。

Downloading/unpacking pygame
  Could not find any downloads that satisfy the requirement pygame
  Some externally hosted files were ignored (use --allow-external pygame to allow).
Cleaning up...
No distributions at all found for pygame
Storing debug log for failure in /home/eric/.pip/pip.log

pygame のローカル バージョンを wheel して wheel ディレクトリに追加するにはどうすればよいですか?

4

1 に答える 1

2

wheel を作成するには、pip でソース ディレクトリを指定する必要があります。例えば:

$ hg clone https://bitbucket.org/pygame/pygame
...
...
$ pip wheel pygame/
Processing ./pygame
Building wheels for collected packages: pygame
  Running setup.py bdist_wheel for pygame
  Stored in directory: /home/vagrant/wheelhouse
Successfully built pygame
(test)vagrant@vagrant-ubuntu-trusty-64:~$ ll /home/vagrant/wheelhouse
total 3264
drwxrwxr-x 2 vagrant vagrant    4096 Sep  6 01:24 ./
drwxr-xr-x 7 vagrant vagrant    4096 Sep  6 01:24 ../
-rw-rw-r-- 1 vagrant vagrant 3333795 Sep  6 01:24 pygame-1.9.2a0-cp27-none-linux_x86_64.whl

インストール手順の部分 (setup.py) が欠落しているため、インストールされたモジュールから wheel を作成することはできません。詳細については、ホイールの使用説明書を確認してください。

于 2015-09-06T01:31:58.260 に答える