Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Compiling from source with setup.py does not copy headers #10

Copy link
Copy link
@keckj

Description

@keckj
Issue body actions

Compiling from source does not copy headers:

  • python3 setup.py install does not copy include files (optix.h)
  • pip3 install . works because custom_bdist_wheel is executed in setup.py

When using setup.py, get_local_optix_include_path() returns None which results in module creation failure:

module = optix.Module(context=ctx, src=cuda_source, module_compile_options=compile_opts, pipeline_compile_options=pipeline_opts)
  File "optix/module.pyx", line 257, in optix.module.Module.__init__
  File "optix/module.pyx", line 413, in optix.module.Module.compile_cuda_ptx
  File "/usr/lib/python3.9/genericpath.py", line 19, in exists
    os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

There is warning for missing local headers that could have helped to pinpoint the problem but it is not shown because the condition triggering the warning crashes on None path (optix/module.pyx:413).

In the "From source" in the section in the README.md it is documented to use setup.py.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.