mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
Fix travis build
This commit is contained in:
parent
35349b6224
commit
4018efc50d
@ -35,6 +35,7 @@ addons:
|
|||||||
- python-dev
|
- python-dev
|
||||||
- python3-dev
|
- python3-dev
|
||||||
- zlib1g-dev
|
- zlib1g-dev
|
||||||
|
- fakeroot
|
||||||
script: $PYTHONV makepanda/makepanda.py --everything --git-commit $TRAVIS_COMMIT $FLAGS --threads 4 && LD_LIBRARY_PATH=built/lib PYTHONPATH=built $PYTHONV makepanda/test_imports.py
|
script: $PYTHONV makepanda/makepanda.py --everything --git-commit $TRAVIS_COMMIT $FLAGS --threads 4 && LD_LIBRARY_PATH=built/lib PYTHONPATH=built $PYTHONV makepanda/test_imports.py
|
||||||
notifications:
|
notifications:
|
||||||
irc:
|
irc:
|
||||||
|
@ -7,13 +7,19 @@ import os, importlib
|
|||||||
import direct.showbase.VerboseImport
|
import direct.showbase.VerboseImport
|
||||||
|
|
||||||
|
|
||||||
|
import imp
|
||||||
import panda3d
|
import panda3d
|
||||||
dir = os.path.dirname(panda3d.__file__)
|
dir = os.path.dirname(panda3d.__file__)
|
||||||
|
|
||||||
for basename in os.listdir(dir):
|
extensions = set()
|
||||||
module, ext = os.path.splitext(basename)
|
for suffix in imp.get_suffixes():
|
||||||
|
extensions.add(suffix[0])
|
||||||
|
|
||||||
if ext in ('.pyd', '.so'):
|
for basename in os.listdir(dir):
|
||||||
|
module = basename.split('.', 1)[0]
|
||||||
|
ext = basename[len(module):]
|
||||||
|
|
||||||
|
if ext in extensions:
|
||||||
importlib.import_module('panda3d.%s' % (module))
|
importlib.import_module('panda3d.%s' % (module))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user