Advertisement
Guest User

Untitled

a guest
Aug 1st, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. https://archive.panda3d.org/branches/deploy-ng/
  2. https://pypi.org/project/Pygame/#files
  3. download the wheels for the platforms you want to build on
  4. install the wheels for your currently running platform
  5.  
  6. rename panda3d-1.10.0.dev1676+deployng.226-cp27-cp27m-macosx_10_6_i386.whl to panda3d-1.10.0.dev1676+deployng.226-cp27-cp27m-macosx_10_11_intel.whl
  7.  
  8.  
  9. make a file in the root folder of you game called setup.py containing the following:
  10.  
  11. ------
  12.  
  13. from setuptools import setup
  14.  
  15. setup(
  16. name="ProjectName",
  17. options = {
  18. 'build_apps': {
  19. 'include_patterns': [
  20. '*.png',
  21. '*.ogg',
  22. '*.wav',
  23. ],
  24. 'exclude_modules': {
  25. 'pygame':'_numpyarray',
  26. 'numpy':'*',
  27. },
  28. 'gui_apps': {
  29. 'ExecutableName': 'main.py',
  30. },
  31. 'platforms': [
  32. 'manylinux1_i686',
  33. 'win32',
  34. 'macosx_10_11_intel',
  35. ],
  36. }
  37. }
  38. )
  39.  
  40. ----
  41.  
  42. in a terminal run: $ python setup.py bdist_apps
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement