Improve distutils (#418)

* remove old distutils

* core done

* ccompiler done

* compilers done

* archive_util done

* dep_util done

* dir_util done

* file_util done

* util done

* dist done

* debug, error, extension done

* fancy_getopt done

* filelist, log, spawn done

* sysconfig done

* text_file done

* version done

* cmd done

* add command

* add emxccompiler which is py2 only

* command.build_py have spec only in py3

* make pytype happy by resolving relative import
This commit is contained in:
Valérian Rousset
2016-08-04 00:38:15 +02:00
committed by Matthias Kramm
parent 2c21f27310
commit 2e560d38dc
51 changed files with 407 additions and 40 deletions

View File

@@ -1,7 +0,0 @@
# Stubs for distutils (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
__revision__ = ... # type: Any

View File

@@ -0,0 +1,5 @@
# Stubs for emxccompiler
from distutils.unixccompiler import UnixCCompiler
class EMXCCompiler(UnixCCompiler): ...

View File

@@ -1,23 +0,0 @@
# Stubs for distutils.version (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
class Version:
def __init__(self, vstring=...) -> None: ...
class StrictVersion(Version):
version_re = ... # type: Any
version = ... # type: Any
prerelease = ... # type: Any
def parse(self, vstring): ...
def __cmp__(self, other): ...
class LooseVersion(Version):
component_re = ... # type: Any
def __init__(self, vstring=...) -> None: ...
vstring = ... # type: Any
version = ... # type: Any
def parse(self, vstring): ...
def __cmp__(self, other): ...