Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
ad7f41bd
Commit
ad7f41bd
authored
Nov 08, 2014
by
Feng Xiao
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #50 from dlitz/compat-py3k
setup.py fixes for Python 3
parents
a270576f
b460610b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
setup.py
python/setup.py
+11
-2
No files found.
python/setup.py
View file @
ad7f41bd
...
...
@@ -20,7 +20,12 @@ except ImportError:
"ez_setup installed.
\n
"
)
raise
from
distutils.command.clean
import
clean
as
_clean
from
distutils.command.build_py
import
build_py
as
_build_py
if
sys
.
version_info
[
0
]
>=
3
:
# Python 3
from
distutils.command.build_py
import
build_py_2to3
as
_build_py
else
:
# Python 2
from
distutils.command.build_py
import
build_py
as
_build_py
from
distutils.spawn
import
find_executable
maintainer_email
=
"protobuf@googlegroups.com"
...
...
@@ -189,7 +194,11 @@ if __name__ == '__main__':
'google.protobuf.text_format'
],
cmdclass
=
{
'clean'
:
clean
,
'build_py'
:
build_py
},
install_requires
=
[
'setuptools'
],
setup_requires
=
[
'google-apputils'
],
# TODO: Restore dependency once a Python 3 compatible google-apputils
# is released.
setup_requires
=
([
'google-apputils'
]
if
sys
.
version_info
[
0
]
<
3
else
[]),
ext_modules
=
ext_module_list
,
url
=
'https://developers.google.com/protocol-buffers/'
,
maintainer
=
maintainer_email
,
...
...
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