Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
a035afcf
Commit
a035afcf
authored
10 years ago
by
Nathaniel Manista
Browse files
Options
Downloads
Patches
Plain Diff
Clean up setup.py and move it into src/.
parent
6edb4518
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/python/src/setup.py
+14
-19
14 additions, 19 deletions
src/python/src/setup.py
tools/run_tests/build_python.sh
+1
-1
1 addition, 1 deletion
tools/run_tests/build_python.sh
with
15 additions
and
20 deletions
src/python/setup.py
→
src/python/
src/
setup.py
+
14
−
19
View file @
a035afcf
...
@@ -32,19 +32,17 @@
...
@@ -32,19 +32,17 @@
from
distutils
import
core
as
_core
from
distutils
import
core
as
_core
_EXTENSION_SOURCES
=
(
_EXTENSION_SOURCES
=
(
'
src/
_adapter/_c.c
'
,
'
_adapter/_c.c
'
,
'
src/
_adapter/_call.c
'
,
'
_adapter/_call.c
'
,
'
src/
_adapter/_channel.c
'
,
'
_adapter/_channel.c
'
,
'
src/
_adapter/_completion_queue.c
'
,
'
_adapter/_completion_queue.c
'
,
'
src/
_adapter/_error.c
'
,
'
_adapter/_error.c
'
,
'
src/
_adapter/_server.c
'
,
'
_adapter/_server.c
'
,
'
src/
_adapter/_server_credentials.c
'
,
'
_adapter/_server_credentials.c
'
,
)
)
_EXTENSION_INCLUDE_DIRECTORIES
=
(
_EXTENSION_INCLUDE_DIRECTORIES
=
(
'
src
'
,
'
.
'
,
# TODO(nathaniel): Can this path specification be made to work?
#'../../include',
)
)
_EXTENSION_LIBRARIES
=
(
_EXTENSION_LIBRARIES
=
(
...
@@ -52,16 +50,11 @@ _EXTENSION_LIBRARIES = (
...
@@ -52,16 +50,11 @@ _EXTENSION_LIBRARIES = (
'
grpc
'
,
'
grpc
'
,
)
)
_EXTENSION_LIBRARY_DIRECTORIES
=
(
# TODO(nathaniel): Can this path specification be made to work?
#'../../libs/dbg',
)
_EXTENSION_MODULE
=
_core
.
Extension
(
_EXTENSION_MODULE
=
_core
.
Extension
(
'
_adapter._c
'
,
sources
=
list
(
_EXTENSION_SOURCES
),
'
_adapter._c
'
,
sources
=
list
(
_EXTENSION_SOURCES
),
include_dirs
=
_EXTENSION_INCLUDE_DIRECTORIES
,
include_dirs
=
_EXTENSION_INCLUDE_DIRECTORIES
,
libraries
=
_EXTENSION_LIBRARIES
,
libraries
=
_EXTENSION_LIBRARIES
,
library_dirs
=
_EXTENSION_LIBRARY_DIRECTORIES
)
)
_PACKAGES
=
(
_PACKAGES
=
(
'
_adapter
'
,
'
_adapter
'
,
...
@@ -73,12 +66,14 @@ _PACKAGES=(
...
@@ -73,12 +66,14 @@ _PACKAGES=(
'
_framework.face.testing
'
,
'
_framework.face.testing
'
,
'
_framework.foundation
'
,
'
_framework.foundation
'
,
'
_junkdrawer
'
,
'
_junkdrawer
'
,
'
grpc_early_adopter
'
,
)
)
_PACKAGE_DIRECTORIES
=
{
_PACKAGE_DIRECTORIES
=
{
'
_adapter
'
:
'
src/_adapter
'
,
'
_adapter
'
:
'
_adapter
'
,
'
_framework
'
:
'
src/_framework
'
,
'
_framework
'
:
'
_framework
'
,
'
_junkdrawer
'
:
'
src/_junkdrawer
'
,
'
_junkdrawer
'
:
'
_junkdrawer
'
,
'
grpc_early_adopter
'
:
'
grpc_early_adopter
'
,
}
}
_core
.
setup
(
_core
.
setup
(
...
...
This diff is collapsed.
Click to expand it.
tools/run_tests/build_python.sh
+
1
−
1
View file @
a035afcf
...
@@ -12,4 +12,4 @@ virtualenv python2.7_virtual_environment
...
@@ -12,4 +12,4 @@ virtualenv python2.7_virtual_environment
ln
-sf
$root
/include/grpc python2.7_virtual_environment/include/grpc
ln
-sf
$root
/include/grpc python2.7_virtual_environment/include/grpc
source
python2.7_virtual_environment/bin/activate
source
python2.7_virtual_environment/bin/activate
pip
install
enum34
==
1.0.4
futures
==
2.2.0
protobuf
==
2.6.1
pip
install
enum34
==
1.0.4
futures
==
2.2.0
protobuf
==
2.6.1
CFLAGS
=
-I
$root
/include
LDFLAGS
=
-L
$root
/libs/opt pip
install
src/python
CFLAGS
=
-I
$root
/include
LDFLAGS
=
-L
$root
/libs/opt pip
install
src/python
/src
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