PBR

Comment 1 for bug 1510898

Revision history for this message
Sadique (sheiksadique) wrote :

Has there been any progress on this.
I am looking to build a pytorch based module that requires building some cpp_extensions.

The build process works flawlessly if I use setup tools but when i use pbr there are linker errors.

My setup files looks as follows.

```
setup(
    setup_requires=['pbr'],
    pbr=True,
    ext_modules=[
        cpp_extension.CppExtension(
            'myextension',
            ['file1.cpp', 'file2.cpp']
        )],
    cmdclass={'build_ext': cpp_extension.BuildExtension},
)

```

Ofcourse ideally the ext_modules should be inside cfg file but as OP pointed out, it is not clear how i would use custom include dirs like `include_dirs=cpp_extension.include_paths()`.