2015-09-06 2 views
0

Я пишу проект, требующий pygame.Локальный модуль локализации Python

Я установил pygame в python, следуя инструкциям из файла pygame wiki.

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

Я хочу добавить 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 и добавить ее в каталог колес?

ответ

2

Вам нужно указать пункт в исходный каталог, чтобы сделать колесо. Например:

$ 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)[email protected]:~$ 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's usage instructions.

Смежные вопросы