Skip to content

Instantly share code, notes, and snippets.

@surak
Created November 22, 2022 16:19
Show Gist options
  • Save surak/cddbba4d1c0c8d364b8d299b4d33dc6a to your computer and use it in GitHub Desktop.
Save surak/cddbba4d1c0c8d364b8d299b4d33dc6a to your computer and use it in GitHub Desktop.
--- protobuf-3.6.1/setup.py.orig 2022-11-22 15:45:14.178064636 +0000
+++ protobuf-3.6.1/setup.py 2022-11-22 15:45:28.566262276 +0000
@@ -13,12 +13,7 @@
from distutils.command.clean import clean as _clean
-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.command.build_py import build_py as _build_py
from distutils.spawn import find_executable
# Find the Protocol Compiler.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment