Browse Source

Disable python 2 for open source

somov 1 year ago
parent
commit
aa4c948ce7
2 changed files with 108 additions and 0 deletions
  1. 4 0
      build/conf/python.conf
  2. 104 0
      build/sysincl/python-2-disable.yml

+ 4 - 0
build/conf/python.conf

@@ -131,6 +131,10 @@ when ($USE_ARCADIA_PYTHON == "no") {
     SYSINCL+=build/sysincl/python.yml
 }
 
+when ($OPENSOURCE) {
+    SYSINCL+=build/sysincl/python-2-disable.yml
+}
+
 # tag:python-specific
 PYTHON2=no
 PYTHON3=no

+ 104 - 0
build/sysincl/python-2-disable.yml

@@ -0,0 +1,104 @@
+- includes:
+  - contrib/tools/python/src/Include/Python-ast.h
+  - contrib/tools/python/src/Include/Python.h
+  - contrib/tools/python/src/Include/abstract.h
+  - contrib/tools/python/src/Include/asdl.h
+  - contrib/tools/python/src/Include/ast.h
+  - contrib/tools/python/src/Include/bitset.h
+  - contrib/tools/python/src/Include/boolobject.h
+  - contrib/tools/python/src/Include/bufferobject.h
+  - contrib/tools/python/src/Include/bytearrayobject.h
+  - contrib/tools/python/src/Include/bytes_methods.h
+  - contrib/tools/python/src/Include/bytesobject.h
+  - contrib/tools/python/src/Include/cStringIO.h
+  - contrib/tools/python/src/Include/cellobject.h
+  - contrib/tools/python/src/Include/ceval.h
+  - contrib/tools/python/src/Include/classobject.h
+  - contrib/tools/python/src/Include/cobject.h
+  - contrib/tools/python/src/Include/code.h
+  - contrib/tools/python/src/Include/codecs.h
+  - contrib/tools/python/src/Include/compile.h
+  - contrib/tools/python/src/Include/complexobject.h
+  - contrib/tools/python/src/Include/config_platform.h
+  - contrib/tools/python/src/Include/datetime.h
+  - contrib/tools/python/src/Include/descrobject.h
+  - contrib/tools/python/src/Include/dictobject.h
+  - contrib/tools/python/src/Include/dtoa.h
+  - contrib/tools/python/src/Include/enumobject.h
+  - contrib/tools/python/src/Include/errcode.h
+  - contrib/tools/python/src/Include/eval.h
+  - contrib/tools/python/src/Include/fileobject.h
+  - contrib/tools/python/src/Include/floatobject.h
+  - contrib/tools/python/src/Include/frameobject.h
+  - contrib/tools/python/src/Include/funcobject.h
+  - contrib/tools/python/src/Include/genobject.h
+  - contrib/tools/python/src/Include/graminit.h
+  - contrib/tools/python/src/Include/grammar.h
+  - contrib/tools/python/src/Include/intobject.h
+  - contrib/tools/python/src/Include/intrcheck.h
+  - contrib/tools/python/src/Include/iterobject.h
+  - contrib/tools/python/src/Include/listobject.h
+  - contrib/tools/python/src/Include/longintrepr.h
+  - contrib/tools/python/src/Include/longobject.h
+  - contrib/tools/python/src/Include/marshal.h
+  - contrib/tools/python/src/Include/memoryobject.h
+  - contrib/tools/python/src/Include/metagrammar.h
+  - contrib/tools/python/src/Include/methodobject.h
+  - contrib/tools/python/src/Include/modsupport.h
+  - contrib/tools/python/src/Include/moduleobject.h
+  - contrib/tools/python/src/Include/node.h
+  - contrib/tools/python/src/Include/object.h
+  - contrib/tools/python/src/Include/objimpl.h
+  - contrib/tools/python/src/Include/opcode.h
+  - contrib/tools/python/src/Include/osdefs.h
+  - contrib/tools/python/src/Include/parsetok.h
+  - contrib/tools/python/src/Include/patchlevel.h
+  - contrib/tools/python/src/Include/pgen.h
+  - contrib/tools/python/src/Include/pgenheaders.h
+  - contrib/tools/python/src/Include/py_curses.h
+  - contrib/tools/python/src/Include/pyarena.h
+  - contrib/tools/python/src/Include/pycapsule.h
+  - contrib/tools/python/src/Include/pyconfig.cygwin.h
+  - contrib/tools/python/src/Include/pyconfig.darwin.arm64.h
+  - contrib/tools/python/src/Include/pyconfig.darwin.h
+  - contrib/tools/python/src/Include/pyconfig.freebsd.h
+  - contrib/tools/python/src/Include/pyconfig.h
+  - contrib/tools/python/src/Include/pyconfig.ios.arm64.h
+  - contrib/tools/python/src/Include/pyconfig.ios.armv7.h
+  - contrib/tools/python/src/Include/pyconfig.ios.i386.h
+  - contrib/tools/python/src/Include/pyconfig.ios.x86_64.h
+  - contrib/tools/python/src/Include/pyconfig.linux.h
+  - contrib/tools/python/src/Include/pyconfig.win32.h
+  - contrib/tools/python/src/Include/pyctype.h
+  - contrib/tools/python/src/Include/pydebug.h
+  - contrib/tools/python/src/Include/pyerrors.h
+  - contrib/tools/python/src/Include/pyexpat.h
+  - contrib/tools/python/src/Include/pyfpe.h
+  - contrib/tools/python/src/Include/pygetopt.h
+  - contrib/tools/python/src/Include/pymacconfig.h
+  - contrib/tools/python/src/Include/pymactoolbox.h
+  - contrib/tools/python/src/Include/pymath.h
+  - contrib/tools/python/src/Include/pymem.h
+  - contrib/tools/python/src/Include/pyport.h
+  - contrib/tools/python/src/Include/pystate.h
+  - contrib/tools/python/src/Include/pystrcmp.h
+  - contrib/tools/python/src/Include/pystrtod.h
+  - contrib/tools/python/src/Include/pythonrun.h
+  - contrib/tools/python/src/Include/pythread.h
+  - contrib/tools/python/src/Include/rangeobject.h
+  - contrib/tools/python/src/Include/setobject.h
+  - contrib/tools/python/src/Include/sliceobject.h
+  - contrib/tools/python/src/Include/stringobject.h
+  - contrib/tools/python/src/Include/structmember.h
+  - contrib/tools/python/src/Include/structseq.h
+  - contrib/tools/python/src/Include/symtable.h
+  - contrib/tools/python/src/Include/sysmodule.h
+  - contrib/tools/python/src/Include/timefuncs.h
+  - contrib/tools/python/src/Include/token.h
+  - contrib/tools/python/src/Include/traceback.h
+  - contrib/tools/python/src/Include/tupleobject.h
+  - contrib/tools/python/src/Include/ucnhash.h
+  - contrib/tools/python/src/Include/unicodeobject.h
+  - contrib/tools/python/src/Include/warnings.h
+  - contrib/tools/python/src/Include/weakrefobject.h
+  - contrib/tools/python/src/Include/import.h