Skip to content

Commit 026c8a9

Browse files
committed
use src layout to avoid conflicts
1 parent f99acbd commit 026c8a9

File tree

7 files changed

+6
-5
lines changed

7 files changed

+6
-5
lines changed

csrc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ target_link_libraries(pplx_kernels PUBLIC
6868
nvshmem::nvshmem
6969
)
7070
set_target_properties(pplx_kernels PROPERTIES
71-
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../pplx_kernels
71+
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../src/pplx_kernels
7272
CUDA_SEPARABLE_COMPILATION ON
7373
)

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ def run(self) -> None:
7474
"-rf",
7575
"build",
7676
"build-cmake",
77-
"pplx-kernels.egg-info",
78-
"pplx-kernels/libpplx-kernels.so",
77+
"src/pplx_kernels.egg-info",
78+
"src/pplx_kernels/libpplx_kernels.so",
7979
]
8080
)
8181

@@ -91,9 +91,10 @@ def run(self) -> None:
9191
name="pplx-kernels",
9292
version=VERSION,
9393
description="Perplexity Kernels",
94-
packages=find_packages(),
94+
packages=find_packages(where="src"),
95+
package_dir={"": "src"},
9596
package_data={
96-
"pplx-kernels": ["libpplx-kernels.so", "py.typed"],
97+
"pplx_kernels": ["libpplx_kernels.so", "py.typed"],
9798
},
9899
cmdclass={
99100
"build_ext": CMakeBuild,
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)