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.
This PR is somewhat of a followup to this issue: https://github.com/mitsuba-renderer/mitsuba3/issues/228
Currently,
drjit
has aos.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 theos.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 thePYTHONPATH
. This is not a necessary change, but rather for consistency with the work done in https://github.com/mitsuba-renderer/mitsuba3/pull/245.