(Jun-30-2017, 02:03 PM)sparkz_alot Wrote: bear in mind you need to install 'pyglet' before you install 'cocos2d'.
That's requirement is written in
setup.py
install_requires.append('pyglet>=1.2')
Additional dependencies that can be needed like numpy,Avibin,Pygame is not in
setup.py
.
I have a plain to write a tutorial about
Packaging/Modules/setup.py
and all that stuff.
Have started to think of how to do it
So if install cocos2d with
pip 9.0.1
and
Python 3.6
.
It look like this.
C:\
λ pip install cocos2d
Collecting cocos2d
Downloading cocos2d-0.6.4.zip (5.2MB)
100% |████████████████████████████████| 5.2MB 146kB/s
Requirement already satisfied: six>=1.4 in c:\python36\lib\site-packages (from cocos2d)
Collecting pyglet>=1.2 (from cocos2d)
Using cached pyglet-1.2.4-py3-none-any.whl
Building wheels for collected packages: cocos2d
Running setup.py bdist_wheel for cocos2d ... done
Stored in directory: C:\Users\Tom\AppData\Local\pip\Cache\wheels\39\f2\61\a6540702af5bb7f2c4a8997acdfadf33a685efd9f7c47af48c
Successfully built cocos2d
Installing collected packages: pyglet, cocos2d
Successfully installed cocos2d-0.6.4 pyglet-1.2.4
Just as in additional info there is no need to download wheel from
Gohlke.
with
pip 9.0.1
and
Python 3.6
.
It will find wheel and use it
Earlier version pip and Python on Windows did not do that.
Example:
C:\
λ pip install numpy
Collecting numpy
Downloading numpy-1.13.0-cp36-none-win32.whl (6.8MB)
100% |████████████████████████████████| 6.8MB 121kB/s
Installing collected packages: numpy
Successfully installed numpy-1.13.0
C:\
λ pip install pygame
Collecting pygame
Downloading pygame-1.9.3-cp36-cp36m-win32.whl (4.0MB)
100% |████████████████████████████████| 4.0MB 187kB/s
Installing collected packages: pygame
Successfully installed pygame-1.9.3