Skip to content

Commit 54b9311

Browse files
committed
Merge branch 'release/1.10.x'
2 parents 9da7988 + 7f11dc1 commit 54b9311

File tree

7 files changed

+32
-37
lines changed

7 files changed

+32
-37
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Installing Panda3D
2424
==================
2525

2626
The latest Panda3D SDK can be downloaded from
27-
[this page](https://www.panda3d.org/download/sdk-1-10-6/).
27+
[this page](https://www.panda3d.org/download/sdk-1-10-7/).
2828
If you are familiar with installing Python packages, you can use
2929
the following command:
3030

@@ -64,8 +64,8 @@ depending on whether you are on a 32-bit or 64-bit system, or you can
6464
[click here](https://github.com/rdb/panda3d-thirdparty) for instructions on
6565
building them from source.
6666

67-
- https://www.panda3d.org/download/panda3d-1.10.6/panda3d-1.10.6-tools-win64.zip
68-
- https://www.panda3d.org/download/panda3d-1.10.6/panda3d-1.10.6-tools-win32.zip
67+
- https://www.panda3d.org/download/panda3d-1.10.7/panda3d-1.10.7-tools-win64.zip
68+
- https://www.panda3d.org/download/panda3d-1.10.7/panda3d-1.10.7-tools-win32.zip
6969

7070
After acquiring these dependencies, you can build Panda3D from the command
7171
prompt using the following command. Change the `--msvc-version` option based
@@ -136,7 +136,7 @@ macOS
136136
-----
137137

138138
On macOS, you will need to download a set of precompiled thirdparty packages in order to
139-
compile Panda3D, which can be acquired from [here](https://www.panda3d.org/download/panda3d-1.10.6/panda3d-1.10.6-tools-mac.tar.gz).
139+
compile Panda3D, which can be acquired from [here](https://www.panda3d.org/download/panda3d-1.10.7/panda3d-1.10.7-tools-mac.tar.gz).
140140

141141
After placing the thirdparty directory inside the panda3d source directory,
142142
you may build Panda3D using a command like the following:

direct/src/dist/commands.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,10 @@ def copy_with_dependencies(self, source_path, target_path, search_path):
10221022
source_dir = os.path.dirname(source_path)
10231023
target_dir = os.path.dirname(target_path)
10241024
base = os.path.basename(target_path)
1025-
self.copy_dependencies(target_path, target_dir, search_path + [source_dir], base)
1025+
1026+
if source_dir not in search_path:
1027+
search_path = search_path + [source_dir]
1028+
self.copy_dependencies(target_path, target_dir, search_path, base)
10261029

10271030
def copy_dependencies(self, target_path, target_dir, search_path, referenced_by):
10281031
""" Copies the dependencies of target_path into target_dir. """
@@ -1037,8 +1040,7 @@ def copy_dependencies(self, target_path, target_dir, search_path, referenced_by)
10371040
pe = pefile.PEFile()
10381041
pe.read(fp)
10391042
for lib in pe.imports:
1040-
if not lib.lower().startswith('api-ms-win-'):
1041-
deps.append(lib)
1043+
deps.append(lib)
10421044

10431045
elif magic == b'\x7FELF':
10441046
# Elf magic. Used on (among others) Linux and FreeBSD.

doc/ReleaseNotes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Deployment
5252
* Fix libffi-7.dll not being included in official wheels
5353
* PYTHONINSPECT mechanism is no longer enabled when building with optimizations
5454
* A few unnecessary warning messages are squelched
55+
* Windows builds now include previously missing CRT dlls
5556

5657
API
5758
* Add pickle support to Datagram class

makepanda/makepackage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ def MakeInstallerFreeBSD(version, python_versions=[], **kwargs):
726726
oscmd("rm -f %s/tmp/python_dep" % outputdir)
727727

728728
if "PYTHONVERSION" in SDK:
729-
pyver_nodot = SDK["PYTHONVERSION"][6:].replace('.', '')
729+
pyver_nodot = SDK["PYTHONVERSION"][6:].rstrip('dmu').replace('.', '')
730730
else:
731731
pyver_nodot = "%d%d" % (sys.version_info[:2])
732732

makepanda/makepandacore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3360,7 +3360,7 @@ def GetCurrentPythonVersionInfo():
33603360

33613361
from distutils.sysconfig import get_python_lib
33623362
return {
3363-
"version": SDK["PYTHONVERSION"][6:],
3363+
"version": SDK["PYTHONVERSION"][6:].rstrip('dmu'),
33643364
"soabi": GetPythonABI(),
33653365
"ext_suffix": GetExtensionSuffix(),
33663366
"executable": sys.executable,

makepanda/makewheel.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,26 @@ def makewheel(version, output_dir, platform=None):
610610

611611
whl.ignore_deps.update(MANYLINUX_LIBS)
612612

613+
# Add libpython for deployment.
614+
if sys.platform in ('win32', 'cygwin'):
615+
pylib_name = 'python{0}{1}.dll'.format(*sys.version_info)
616+
pylib_path = os.path.join(get_config_var('BINDIR'), pylib_name)
617+
elif sys.platform == 'darwin':
618+
pylib_name = 'libpython{0}.{1}.dylib'.format(*sys.version_info)
619+
pylib_path = os.path.join(get_config_var('LIBDIR'), pylib_name)
620+
else:
621+
pylib_name = get_config_var('LDLIBRARY')
622+
pylib_arch = get_config_var('MULTIARCH')
623+
libdir = get_config_var('LIBDIR')
624+
if pylib_arch and os.path.exists(os.path.join(libdir, pylib_arch, pylib_name)):
625+
pylib_path = os.path.join(libdir, pylib_arch, pylib_name)
626+
else:
627+
pylib_path = os.path.join(libdir, pylib_name)
628+
629+
# If Python was linked statically, we don't need to include this.
630+
if not pylib_name.endswith('.a'):
631+
whl.write_file('deploy_libs/' + pylib_name, pylib_path)
632+
613633
# Add the trees with Python modules.
614634
whl.write_directory('direct', direct_dir)
615635

@@ -738,26 +758,6 @@ def makewheel(version, output_dir, platform=None):
738758
whl.write_file(info_dir + '/README.md', readme_src)
739759
whl.write_file_data(info_dir + '/top_level.txt', 'direct\npanda3d\npandac\npanda3d_tools\n')
740760

741-
# Add libpython for deployment
742-
if sys.platform in ('win32', 'cygwin'):
743-
pylib_name = 'python{0}{1}.dll'.format(*sys.version_info)
744-
pylib_path = os.path.join(get_config_var('BINDIR'), pylib_name)
745-
elif sys.platform == 'darwin':
746-
pylib_name = 'libpython{0}.{1}.dylib'.format(*sys.version_info)
747-
pylib_path = os.path.join(get_config_var('LIBDIR'), pylib_name)
748-
else:
749-
pylib_name = get_config_var('LDLIBRARY')
750-
pylib_arch = get_config_var('MULTIARCH')
751-
libdir = get_config_var('LIBDIR')
752-
if pylib_arch and os.path.exists(os.path.join(libdir, pylib_arch, pylib_name)):
753-
pylib_path = os.path.join(libdir, pylib_arch, pylib_name)
754-
else:
755-
pylib_path = os.path.join(libdir, pylib_name)
756-
757-
# If Python was linked statically, we don't need to include this.
758-
if not pylib_name.endswith('.a'):
759-
whl.write_file('deploy_libs/' + pylib_name, pylib_path)
760-
761761
whl.close()
762762

763763

tests/showbase/test_PythonUtil.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,6 @@ def test_weighted_choice():
146146
# Assert that we got 'item1'.
147147
assert item == items[0]
148148

149-
# Test PythonUtil.weightedChoice() with an invalid sum.
150-
# This time, we're using 2000 so that regardless of the random
151-
# number, we will still reach the very last item.
152-
item = PythonUtil.weightedChoice(choicelist, sum=100000)
153-
154-
# Assert that we got 'item8', since we would get the last item.
155-
assert item == items[-1]
156-
157149
# Create a bogus random function.
158150
rnd = lambda: 0.5
159151

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy