aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/python.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-07-12 14:30:23 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-07-13 16:41:37 -0700
commit3b3c580817ad5c62fe7ceae8bf6494504ba8eee6 (patch)
treeefdd1375c379c28bfa6e76e50f9c2ed9c1fdcd34 /mesonbuild/modules/python.py
parent762c073500dacd140f66ea04e6d9be554ce77795 (diff)
downloadmeson-3b3c580817ad5c62fe7ceae8bf6494504ba8eee6.zip
meson-3b3c580817ad5c62fe7ceae8bf6494504ba8eee6.tar.gz
meson-3b3c580817ad5c62fe7ceae8bf6494504ba8eee6.tar.bz2
modules/python: sort imports
Diffstat (limited to 'mesonbuild/modules/python.py')
-rw-r--r--mesonbuild/modules/python.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
index 46fd27b..af071d8 100644
--- a/mesonbuild/modules/python.py
+++ b/mesonbuild/modules/python.py
@@ -12,31 +12,32 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+from pathlib import Path
import os
import json
import shutil
import typing as T
-from pathlib import Path
-from .. import mesonlib
-from ..mesonlib import MachineChoice, MesonException
from . import ExtensionModule
+from .. import mesonlib
+from .. import mlog
+from ..build import known_shmod_kwargs
+from ..dependencies import DependencyMethods, PkgConfigDependency, NotFoundDependency, SystemDependency
+from ..environment import detect_cpu_family
+from ..interpreter import ExternalProgramHolder, extract_required_kwarg, permitted_dependency_kwargs
from ..interpreterbase import (
noPosargs, noKwargs, permittedKwargs,
InvalidArguments,
FeatureNew, FeatureNewKwargs, disablerIfNotFound
)
-from ..interpreter import ExternalProgramHolder, extract_required_kwarg, permitted_dependency_kwargs
-from ..build import known_shmod_kwargs
-from .. import mlog
-from ..environment import detect_cpu_family
-from ..dependencies import DependencyMethods, PkgConfigDependency, NotFoundDependency, SystemDependency
+from ..mesonlib import MachineChoice, MesonException
from ..programs import ExternalProgram, NonExistingExternalProgram
mod_kwargs = {'subdir'}
mod_kwargs.update(known_shmod_kwargs)
mod_kwargs -= {'name_prefix', 'name_suffix'}
+
class PythonDependency(SystemDependency):
def __init__(self, python_holder, environment, kwargs):