So, I’m trying to create a distributable version of a game that I’m working on. Under normal conditions, this should be straightforward via setuptools.
However, I have a modified version of VFSImporter.py–one that is, I think, reflected in the “master” branch but not in the “1.10” branch that I’m using.
To this end, I’m attempting to make a custom build of the engine, and to then create a build of my game with that engine-build.
So far I’ve created the custom Panda build, and have specifically created it as a “whl”-file.
(Yes, I know, I’m reinventing the whl! :P)
The problem at this point, then, is getting setuptools, etc. to accept that engine-build.
For now, for ease of use (as I’m not familiar with the details of the requirements.txt format) I’ve simply copied the new wheel into the directory from which I’m making the game-build.
With that done, I have the following “requirements.txt” file:
./panda3d-1.10.16-cp312-cp312-linux_x86_64.whl
panda3d
However, when I attempt to build, I get the following output:
setup.py bdist_apps
running bdist_apps
running build_apps
Building platforms: manylinux2014_x86_64
Gathering wheels for platform: manylinux2014_x86_64
Looking in indexes: https://pypi.org/simple, https://archive.panda3d.org/simple/opt, https://archive.panda3d.org/thirdparty
ERROR: panda3d-1.10.16-cp312-cp312-linux_x86_64.whl is not a supported wheel on this platform.
Followed by a long traceback, as follows:
Traceback (most recent call last):
File "/home/thaumaturge/Documents/My Game Projects/MoonsInCrystal/setup.py", line 12, in <module>
setup(
File "/home/thaumaturge/.pyenv/versions/3.12.8/lib/python3.12/site-packages/setuptools/__init__.py", line 115, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/thaumaturge/.pyenv/versions/3.12.8/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 186, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/home/thaumaturge/.pyenv/versions/3.12.8/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
dist.run_commands()
File "/home/thaumaturge/.pyenv/versions/3.12.8/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
self.run_command(cmd)
File "/home/thaumaturge/.pyenv/versions/3.12.8/lib/python3.12/site-packages/setuptools/dist.py", line 1102, in run_command
super().run_command(command)
File "/home/thaumaturge/.pyenv/versions/3.12.8/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "/home/thaumaturge/.pyenv/versions/3.12.8/lib/python3.12/site-packages/direct/dist/commands.py", line 1772, in run
self.run_command('build_apps')
File "/home/thaumaturge/.pyenv/versions/3.12.8/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 357, in run_command
self.distribution.run_command(command)
File "/home/thaumaturge/.pyenv/versions/3.12.8/lib/python3.12/site-packages/setuptools/dist.py", line 1102, in run_command
super().run_command(command)
File "/home/thaumaturge/.pyenv/versions/3.12.8/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
cmd_obj.run()
File "/home/thaumaturge/.pyenv/versions/3.12.8/lib/python3.12/site-packages/direct/dist/commands.py", line 524, in run
self.build_runtimes(platform, True)
File "/home/thaumaturge/.pyenv/versions/3.12.8/lib/python3.12/site-packages/direct/dist/commands.py", line 718, in build_runtimes
wheelpaths = self.download_wheels(platform)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/thaumaturge/.pyenv/versions/3.12.8/lib/python3.12/site-packages/direct/dist/commands.py", line 590, in download_wheels
subprocess.check_call([sys.executable, '-m', 'pip'] + pip_args)
File "/home/thaumaturge/.pyenv/versions/3.12.8/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/thaumaturge/.pyenv/versions/3.12.8/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'download', '-d', '/home/thaumaturge/Documents/My Game Projects/MoonsInCrystal/build/__whl_cache__/manylinux2014_x86_64_cp312', '-r', '/home/thaumaturge/Documents/My Game Projects/MoonsInCrystal/requirements.txt', '--only-binary', ':all:', '--abi', 'cp312', '--platform', 'manylinux2014_x86_64', '--extra-index-url', 'https://archive.panda3d.org/simple/opt', '--extra-index-url', 'https://archive.panda3d.org/thirdparty']' returned non-zero exit status 1.
Does anyone know what I’m doing wrong…?