Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
1762be1f
Commit
1762be1f
authored
Aug 11, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix base path finding for in-place compilation
parent
ee222536
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
Cython/Build/Cythonize.py
Cython/Build/Cythonize.py
+5
-6
No files found.
Cython/Build/Cythonize.py
View file @
1762be1f
...
@@ -60,14 +60,13 @@ def find_package_base(path):
...
@@ -60,14 +60,13 @@ def find_package_base(path):
def
cython_compile
(
path_pattern
,
options
):
def
cython_compile
(
path_pattern
,
options
):
pool
=
None
pool
=
None
paths
=
map
(
os
.
path
.
abspath
,
glob
.
iglob
(
path_pattern
))
try
:
try
:
for
path
in
glob
.
iglob
(
path_pattern
):
for
path
in
paths
:
path
=
os
.
path
.
abspath
(
path
)
if
options
.
build_inplace
:
if
options
.
build_inplace
:
if
is_package_dir
(
path
):
base_dir
=
path
base_dir
=
find_root_package_dir
(
path
)
while
not
os
.
path
.
isdir
(
base_dir
)
or
is_package_dir
(
base_dir
):
else
:
base_dir
=
os
.
path
.
dirname
(
base_dir
)
base_dir
=
path
else
:
else
:
base_dir
=
None
base_dir
=
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment