Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snakehouse
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
snakehouse
Commits
f4683e04
Commit
f4683e04
authored
3 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
3.6 and 3.7 inexplicably hang
parent
31495817
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.travis.yml
+0
-4
0 additions, 4 deletions
.travis.yml
CHANGELOG.md
+1
-1
1 addition, 1 deletion
CHANGELOG.md
snakehouse/multibuild.py
+14
-7
14 additions, 7 deletions
snakehouse/multibuild.py
snakehouse/requirements.py
+1
-0
1 addition, 0 deletions
snakehouse/requirements.py
with
16 additions
and
12 deletions
.travis.yml
+
0
−
4
View file @
f4683e04
...
...
@@ -12,10 +12,6 @@ jobs:
include
:
-
stage
:
test
python
:
"
3.5"
-
stage
:
test
python
:
"
3.6"
-
stage
:
test
python
:
"
3.7"
-
stage
:
test
python
:
"
3.8"
-
stage
:
test
...
...
This diff is collapsed.
Click to expand it.
CHANGELOG.md
+
1
−
1
View file @
f4683e04
...
...
@@ -4,7 +4,7 @@
*
`snakehouse`
doesn't need cython and satella installed in advance
*
added
`find_all`
*
made available for PyPy users
*
deprecated
`find_pyx`
and
`find_pyx_and_c`
*
deprecated
`find_pyx`
,
`find_c`
and
`find_pyx_and_c`
# v1.4
...
...
This diff is collapsed.
Click to expand it.
snakehouse/multibuild.py
+
14
−
7
View file @
f4683e04
...
...
@@ -50,19 +50,26 @@ class find_all:
A directive for :class:`snakehouse.Multibuild` to locate all .pyx
files, and possibly all the .c files depending on the switch
:param dir: base directory to look for files in
:param include_c_files: whether to also hook up the located .c files
:param directory: base directory to look for files in
:param include_c_files: whether to also hook up the located .c files (default False)
:param only_c_files: whether to look up only .c files (default False)
"""
def
__init__
(
self
,
dir
:
str
,
include_c_files
:
bool
=
False
):
self
.
dir
=
dir
def
__init__
(
self
,
directory
:
str
,
include_c_files
:
bool
=
False
,
only_c_files
:
bool
=
False
):
self
.
dir
=
directory
self
.
include_c_files
=
include_c_files
self
.
only_c_files
=
only_c_files
def
__iter__
(
self
):
pyx_files
=
find_files
(
self
.
dir
,
r
'
(.*)\.pyx
'
,
scan_subdirectories
=
True
)
c_files
=
find_files
(
self
.
dir
,
r
'
(.*)\.c
'
,
scan_subdirectories
=
True
)
if
self
.
only_c_files
:
pyx_files
=
[]
else
:
pyx_files
=
find_files
(
self
.
dir
,
r
'
(.*)\.pyx
'
,
scan_subdirectories
=
True
)
if
self
.
include_c_files
:
pyx_files
=
itertools
.
chain
(
pyx_files
,
c_files
)
pyx_files
=
itertools
.
chain
(
pyx_files
,
find_files
(
self
.
dir
,
r
'
(.*)\.c
'
,
scan_subdirectories
=
True
))
return
pyx_files
...
...
This diff is collapsed.
Click to expand it.
snakehouse/requirements.py
+
1
−
0
View file @
f4683e04
...
...
@@ -25,6 +25,7 @@ def find_c(directory_path: str) -> tp.List[str]:
:param directory_path: directory to look through
:return: .c files found
"""
warnings
.
warn
(
'
This is deprecated. Use find_all instead
'
,
DeprecationWarning
)
return
find_files
(
directory_path
,
'
(.*)
\\
.c$
'
,
scan_subdirectories
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment