File tree 22 files changed +33
-33
lines changed
tests/packages/importlib_editable/pkg
22 files changed +33
-33
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ install(TARGETS emod_a DESTINATION pkg/)
4
4
file (WRITE "${CMAKE_CURRENT_BINARY_DIR} /testfile" "This is the file" )
5
5
install (FILES "${CMAKE_CURRENT_BINARY_DIR} /testfile" DESTINATION pkg/)
6
6
7
- add_subdirectory (subpkg1 )
8
- add_subdirectory (subpkg2 )
7
+ add_subdirectory (sub_a )
8
+ add_subdirectory (sub_b )
Original file line number Diff line number Diff line change 9
9
from . import emod_a
10
10
11
11
# Level one subpackages
12
- from . import subpkg1 , subpkg2
12
+ from . import sub_a , sub_b
13
13
14
14
# Level two pure modules
15
- from .subpkg1 import pmod_b
16
- from .subpkg2 import pmod_c
15
+ from .sub_a import pmod_b
16
+ from .sub_b import pmod_c
17
17
18
18
# Level two extension modules
19
- from .subpkg1 import emod_b
20
- from .subpkg2 import emod_c
19
+ from .sub_a import emod_b
20
+ from .sub_b import emod_c
21
21
22
22
# Level two subpackages
23
- from .subpkg2 import subsubpkg1 , subsubpkg2
23
+ from .sub_b import sub_c , sub_d
24
24
25
25
# Level three pure modules
26
- from .subpkg2 . subsubpkg1 import pmod_d
27
- from .subpkg2 . subsubpkg2 import pmod_e
26
+ from .sub_b . sub_c import pmod_d
27
+ from .sub_b . sub_d import pmod_e
28
28
29
29
# Level three extension modules
30
- from .subpkg2 . subsubpkg1 import emod_d
31
- from .subpkg2 . subsubpkg2 import emod_e
30
+ from .sub_b . sub_c import emod_d
31
+ from .sub_b . sub_d import emod_e
32
32
33
33
__all__ = [
34
34
"emod_a" ,
41
41
"pmod_c" ,
42
42
"pmod_d" ,
43
43
"pmod_e" ,
44
- "subpkg1 " ,
45
- "subpkg2 " ,
46
- "subsubpkg1 " ,
47
- "subsubpkg2 " ,
44
+ "sub_a " ,
45
+ "sub_b " ,
46
+ "sub_c " ,
47
+ "sub_d " ,
48
48
]
Original file line number Diff line number Diff line change 1
1
python_add_library(emod_b MODULE emod_b.c WITH_SOABI)
2
2
3
- install (TARGETS emod_b DESTINATION pkg/subpkg1 )
3
+ install (TARGETS emod_b DESTINATION pkg/sub_a )
4
4
file (WRITE "${CMAKE_CURRENT_BINARY_DIR} /testfile" "This is the file" )
5
- install (FILES "${CMAKE_CURRENT_BINARY_DIR} /testfile" DESTINATION pkg/subpkg1 )
5
+ install (FILES "${CMAKE_CURRENT_BINARY_DIR} /testfile" DESTINATION pkg/sub_a )
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
python_add_library(emod_c MODULE emod_c.c WITH_SOABI)
2
2
3
- install (TARGETS emod_c DESTINATION pkg/subpkg2 )
3
+ install (TARGETS emod_c DESTINATION pkg/sub_b )
4
4
file (WRITE "${CMAKE_CURRENT_BINARY_DIR} /testfile" "This is the file" )
5
- install (FILES "${CMAKE_CURRENT_BINARY_DIR} /testfile" DESTINATION pkg/subpkg2 )
5
+ install (FILES "${CMAKE_CURRENT_BINARY_DIR} /testfile" DESTINATION pkg/sub_b )
6
6
7
- add_subdirectory (subsubpkg1 )
8
- add_subdirectory (subsubpkg2 )
7
+ add_subdirectory (sub_c )
8
+ add_subdirectory (sub_d )
Original file line number Diff line number Diff line change 9
9
from . import emod_c
10
10
11
11
# Level one subpackages
12
- from . import subsubpkg1 , subsubpkg2
12
+ from . import sub_c , sub_d
13
13
14
14
# Level two pure modules
15
- from .subsubpkg1 import pmod_d
16
- from .subsubpkg2 import pmod_e
15
+ from .sub_c import pmod_d
16
+ from .sub_d import pmod_e
17
17
18
18
# Level two extension modules
19
- from .subsubpkg1 import emod_d
20
- from .subsubpkg2 import emod_e
19
+ from .sub_c import emod_d
20
+ from .sub_d import emod_e
21
21
22
22
__all__ = [
23
23
"emod_c" ,
26
26
"pmod_c" ,
27
27
"pmod_d" ,
28
28
"pmod_e" ,
29
- "subsubpkg1 " ,
30
- "subsubpkg2 " ,
29
+ "sub_c " ,
30
+ "sub_d " ,
31
31
]
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
python_add_library(emod_d MODULE emod_d.c WITH_SOABI)
2
2
3
- install (TARGETS emod_d DESTINATION pkg/subpkg2/subsubpkg1 )
3
+ install (TARGETS emod_d DESTINATION pkg/sub_b/sub_c )
4
4
file (WRITE "${CMAKE_CURRENT_BINARY_DIR} /testfile" "This is the file" )
5
5
install (FILES "${CMAKE_CURRENT_BINARY_DIR} /testfile"
6
- DESTINATION pkg/subpkg2/subsubpkg1 /)
6
+ DESTINATION pkg/sub_b/sub_c /)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
python_add_library(emod_e MODULE emod_e.c WITH_SOABI)
2
2
3
- install (TARGETS emod_e DESTINATION pkg/subpkg2/subsubpkg2 /)
3
+ install (TARGETS emod_e DESTINATION pkg/sub_b/sub_d /)
4
4
file (WRITE "${CMAKE_CURRENT_BINARY_DIR} /testfile" "This is the file" )
5
5
install (FILES "${CMAKE_CURRENT_BINARY_DIR} /testfile"
6
- DESTINATION pkg/subpkg2/subsubpkg2 /)
6
+ DESTINATION pkg/sub_b/sub_d /)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments