Browse Source

python: avoid clash with the builtin platform module when running tests.

pull/8/head
Vladimír Vondruš 7 years ago
parent
commit
875a81803b
  1. 6
      src/python/magnum/platform/CMakeLists.txt
  2. 0
      src/python/magnum/platform/_init.py

6
src/python/magnum/platform/CMakeLists.txt

@ -79,5 +79,9 @@ if(NOT MAGNUM_BUILD_STATIC)
endif() endif()
endif() endif()
# Not named __init__.py so this directory is not treated as a module by python
# when running python -m unittest in the parent directory (because numpy uses
# python's builtin platform module to check for PyPy and it's all downhill from
# there)
file(GENERATE OUTPUT ${output_dir}/magnum/platform/__init__.py file(GENERATE OUTPUT ${output_dir}/magnum/platform/__init__.py
INPUT ${CMAKE_CURRENT_SOURCE_DIR}/__init__.py) INPUT ${CMAKE_CURRENT_SOURCE_DIR}/_init.py)

0
src/python/magnum/platform/__init__.py → src/python/magnum/platform/_init.py

Loading…
Cancel
Save