Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
pygolang
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
pygolang
Commits
ff9beb02
Commit
ff9beb02
authored
Jan 24, 2022
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pyx.build: Simplify listing dependencies
/reviewed-on
!17
parent
ad84cf76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
29 deletions
+33
-29
golang/pyx/build.py
golang/pyx/build.py
+33
-29
No files found.
golang/pyx/build.py
View file @
ff9beb02
# Copyright (C) 2019-202
0
Nexedi SA and Contributors.
# Copyright (C) 2019-202
2
Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com>
#
# This program is free software: you can Use, Study, Modify and Redistribute
...
...
@@ -171,17 +171,19 @@ def _with_build_defaults(kw): # -> (pygo, kw')
# some C-level depends to workaround a bit lack of proper dependency
# tracking in setuptools/distutils.
dependv
=
kw
.
get
(
'depends'
,
[])[:]
dependv
.
append
(
'%s/golang/libgolang.h'
%
pygo
)
dependv
.
append
(
'%s/golang/context.h'
%
pygo
)
dependv
.
append
(
'%s/golang/cxx.h'
%
pygo
)
dependv
.
append
(
'%s/golang/errors.h'
%
pygo
)
dependv
.
append
(
'%s/golang/fmt.h'
%
pygo
)
dependv
.
append
(
'%s/golang/io.h'
%
pygo
)
dependv
.
append
(
'%s/golang/strings.h'
%
pygo
)
dependv
.
append
(
'%s/golang/sync.h'
%
pygo
)
dependv
.
append
(
'%s/golang/time.h'
%
pygo
)
dependv
.
append
(
'%s/golang/pyx/runtime.h'
%
pygo
)
dependv
.
append
(
'%s/golang/_testing.h'
%
pygo
)
dependv
.
extend
([
'%s/golang/%s'
%
(
pygo
,
_
)
for
_
in
[
'libgolang.h'
,
'context.h'
,
'cxx.h'
,
'errors.h'
,
'fmt.h'
,
'io.h'
,
'strings.h'
,
'sync.h'
,
'time.h'
,
'pyx/runtime.h'
,
'_testing.h'
,
]])
kw
[
'depends'
]
=
dependv
return
pygo
,
kw
...
...
@@ -201,23 +203,25 @@ def Extension(name, sources, **kw):
# some pyx-level depends to workaround a bit lack of proper dependency
# tracking in setuptools/distutils.
dependv
=
kw
.
get
(
'depends'
,
[])[:]
dependv
.
append
(
'%s/golang/_golang.pxd'
%
pygo
)
dependv
.
append
(
'%s/golang/__init__.pxd'
%
pygo
)
dependv
.
append
(
'%s/golang/context.pxd'
%
pygo
)
dependv
.
append
(
'%s/golang/_context.pxd'
%
pygo
)
dependv
.
append
(
'%s/golang/cxx.pxd'
%
pygo
)
dependv
.
append
(
'%s/golang/errors.pxd'
%
pygo
)
dependv
.
append
(
'%s/golang/_errors.pxd'
%
pygo
)
dependv
.
append
(
'%s/golang/fmt.pxd'
%
pygo
)
dependv
.
append
(
'%s/golang/_fmt.pxd'
%
pygo
)
dependv
.
append
(
'%s/golang/io.pxd'
%
pygo
)
dependv
.
append
(
'%s/golang/_io.pxd'
%
pygo
)
dependv
.
append
(
'%s/golang/strings.pxd'
%
pygo
)
dependv
.
append
(
'%s/golang/sync.pxd'
%
pygo
)
dependv
.
append
(
'%s/golang/_sync.pxd'
%
pygo
)
dependv
.
append
(
'%s/golang/time.pxd'
%
pygo
)
dependv
.
append
(
'%s/golang/_time.pxd'
%
pygo
)
dependv
.
append
(
'%s/golang/pyx/runtime.pxd'
%
pygo
)
dependv
.
extend
([
'%s/golang/%s'
%
(
pygo
,
_
)
for
_
in
[
'_golang.pxd'
,
'__init__.pxd'
,
'context.pxd'
,
'_context.pxd'
,
'cxx.pxd'
,
'errors.pxd'
,
'_errors.pxd'
,
'fmt.pxd'
,
'_fmt.pxd'
,
'io.pxd'
,
'_io.pxd'
,
'strings.pxd'
,
'sync.pxd'
,
'_sync.pxd'
,
'time.pxd'
,
'_time.pxd'
,
'pyx/runtime.pxd'
,
]])
kw
[
'depends'
]
=
dependv
# workaround pip bug that for virtualenv case headers are installed into
...
...
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