mitsuba-renderer / drjit

Dr.Jit — A Just-In-Time-Compiler for Differentiable Rendering
BSD 3-Clause "New" or "Revised" License
593 stars 43 forks source link

Remove additional DLL search directories in Python package init #74

Closed njroussel closed 2 years ago

njroussel commented 2 years ago

This PR is somewhat of a followup to this issue: https://github.com/mitsuba-renderer/mitsuba3/issues/228

Currently, drjit has a os.add_dll_directory statement in its __init__.py file. Unfortunately, this functionality is not well supported by Conda on Windows (https://github.com/conda/conda/issues/10897). Moreover, this code is only useful when building Mitsuba and serves no purpose when using Dr.Jit on its own. This PR removes the os.add_dll_directory statement.

This PR also refactors the Python stub file generation such that it expected the drjit package to already be located on the PYTHONPATH. This is not a necessary change, but rather for consistency with the work done in https://github.com/mitsuba-renderer/mitsuba3/pull/245.