cppmake 127.0.13__py3-none-any.whl → 127.0.16__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cppmake-127.0.16.dist-info/METADATA +191 -0
- cppmake-127.0.16.dist-info/RECORD +55 -0
- {cppmake-127.0.13.dist-info → cppmake-127.0.16.dist-info}/WHEEL +1 -1
- cppmake-127.0.16.dist-info/entry_points.txt +3 -0
- cppmake-127.0.16.dist-info/top_level.txt +3 -0
- cppmaked.py +2 -0
- cppmakelib/__init__.py +32 -0
- cppmakelib/basic/config.py +50 -0
- cppmakelib/basic/context.py +39 -0
- cppmakelib/builder/cmake.py +71 -0
- cppmakelib/builder/include.py +15 -0
- cppmakelib/builder/makefile.py +68 -0
- cppmakelib/compiler/all.py +26 -0
- cppmakelib/compiler/clang.py +196 -0
- cppmakelib/compiler/emcc.py +79 -0
- cppmakelib/compiler/gcc.py +237 -0
- cppmakelib/compiler/msvc.py +24 -0
- cppmakelib/error/config.py +5 -0
- cppmakelib/error/logic.py +6 -0
- cppmakelib/error/subprocess.py +9 -0
- cppmakelib/executor/operation.py +15 -0
- cppmakelib/executor/run.py +84 -0
- cppmakelib/executor/scheduler.py +91 -0
- cppmakelib/logger/compile_commands.py +30 -0
- cppmakelib/logger/make_progress.py +0 -0
- cppmakelib/logger/module_mapper.py +6 -0
- cppmakelib/logger/unit_status.py +224 -0
- cppmakelib/system/all.py +25 -0
- cppmakelib/system/linux.py +26 -0
- cppmakelib/system/macos.py +26 -0
- cppmakelib/system/windows.py +26 -0
- cppmakelib/unit/binary.py +26 -0
- cppmakelib/unit/code.py +62 -0
- cppmakelib/unit/dynamic.py +12 -0
- cppmakelib/unit/executable.py +35 -0
- cppmakelib/unit/header.py +63 -0
- cppmakelib/unit/module.py +69 -0
- cppmakelib/unit/object.py +71 -0
- cppmakelib/unit/package.py +87 -0
- cppmakelib/unit/precompiled.py +6 -0
- cppmakelib/unit/preparsed.py +6 -0
- cppmakelib/unit/preprocessed.py +3 -0
- cppmakelib/unit/source.py +64 -0
- cppmakelib/utility/algorithm.py +44 -0
- cppmakelib/utility/color.py +14 -0
- cppmakelib/utility/decorator.py +120 -0
- cppmakelib/utility/filesystem.py +71 -0
- cppmakelib/utility/import_.py +21 -0
- cppmakelib/utility/remote/client.py +2 -0
- cppmakelib/utility/remote/protocol.py +32 -0
- cppmakelib/utility/remote/remote.py +43 -0
- cppmakelib/utility/remote/server.py +0 -0
- cppmakelib/utility/time.py +1 -0
- cppmakelib/utility/version.py +65 -0
- cppmake-127.0.13.dist-info/METADATA +0 -9
- cppmake-127.0.13.dist-info/RECORD +0 -6
- cppmake-127.0.13.dist-info/entry_points.txt +0 -2
- cppmake-127.0.13.dist-info/top_level.txt +0 -1
- /cppmake/__main__.py → /cppmake.py +0 -0
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
time = int
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
from cppmakelib.error.config import ConfigError
|
|
2
|
+
from cppmakelib.error.logic import LogicError
|
|
3
|
+
from cppmakelib.error.subprocess import SubprocessError
|
|
4
|
+
from cppmakelib.utility.decorator import syncable
|
|
5
|
+
import functools
|
|
6
|
+
import re
|
|
7
|
+
import sys
|
|
8
|
+
|
|
9
|
+
@functools.total_ordering
|
|
10
|
+
class Version:
|
|
11
|
+
def __init__(self, *elements: list[int]) -> None : ...
|
|
12
|
+
def __str__ (self) -> str : ...
|
|
13
|
+
def __eq__ (self, other_version: Version | object) -> bool : ...
|
|
14
|
+
def __lt__ (self, other_version: Version | int | float | object) -> bool : ...
|
|
15
|
+
@staticmethod
|
|
16
|
+
def parse (text: str) -> Version: ...
|
|
17
|
+
|
|
18
|
+
# @functools.total_ordering
|
|
19
|
+
# class Version:
|
|
20
|
+
# def __init__(self, major, minor=0, patch=0):
|
|
21
|
+
# self.major = major
|
|
22
|
+
# self.minor = minor
|
|
23
|
+
# self.patch = patch
|
|
24
|
+
|
|
25
|
+
# def __str__(self):
|
|
26
|
+
# return f'{self.major}.{self.minor}.{self.patch}'
|
|
27
|
+
|
|
28
|
+
# def __eq__(self, other):
|
|
29
|
+
# if type(other) is Version:
|
|
30
|
+
# return self.major == other.major and self.minor == other.minor and self.patch == other.patch
|
|
31
|
+
# else:
|
|
32
|
+
# return NotImplemented
|
|
33
|
+
|
|
34
|
+
# def __lt__(self, other):
|
|
35
|
+
# if type(other) is Version:
|
|
36
|
+
# return (self.major < other.major) or \
|
|
37
|
+
# (self.major == other.major and self.minor < other.minor) or \
|
|
38
|
+
# (self.major == other.major and self.minor == other.minor and self.patch < other.patch)
|
|
39
|
+
# elif type(other) is int:
|
|
40
|
+
# return self < Version(other)
|
|
41
|
+
# elif type(other) is float:
|
|
42
|
+
# numbers = str(other).split('.')
|
|
43
|
+
# return self < Version(numbers[0], *([numbers[1]] if len(numbers) >= 2 else []))
|
|
44
|
+
# else:
|
|
45
|
+
# return NotImplemented
|
|
46
|
+
|
|
47
|
+
# @syncable
|
|
48
|
+
# async def async_parse(name, command, check, pipe=sys.stdout, lowest=0):
|
|
49
|
+
# try:
|
|
50
|
+
# output = await async_run(command=command, return_stdout=(pipe is sys.stdout), return_stderr=(pipe is sys.stderr))
|
|
51
|
+
# if check(output):
|
|
52
|
+
# word = re.search(r'\b\d+(\.\d+)+\b', output)
|
|
53
|
+
# if word is None:
|
|
54
|
+
# raise LogicError(f'version parse failed (with output = {output})')
|
|
55
|
+
# version = Version(*[int(split) for split in word.group().split('.')[:3]])
|
|
56
|
+
# if version >= lowest:
|
|
57
|
+
# return version
|
|
58
|
+
# else:
|
|
59
|
+
# raise ConfigError(f'{name} is too old (with version = {version}, requires >= {lowest})')
|
|
60
|
+
# else:
|
|
61
|
+
# raise ConfigError(f'{name} is not valid (with "{' '.join(command)}" returned "{output.replace('\n', ' ')}")')
|
|
62
|
+
# except SubprocessError as error:
|
|
63
|
+
# raise ConfigError(f'{name} is not valid (with "{' '.join(command)}" failed)') from error
|
|
64
|
+
# except FileNotFoundError as error:
|
|
65
|
+
# raise ConfigError(f'{name} is not found (with "{' '.join(command)}" not found)') from error
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: cppmake
|
|
3
|
-
Version: 127.0.13
|
|
4
|
-
Summary: A modern C++ builder based on C++20 Modules.
|
|
5
|
-
Author-email: shyeyian <shyeyian@icloud.com>
|
|
6
|
-
License-Expression: MIT
|
|
7
|
-
Requires-Python: >=3.13
|
|
8
|
-
Description-Content-Type: text/markdown
|
|
9
|
-
Requires-Dist: cppmakelib
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
cppmake/__main__.py,sha256=xbfuYDNg1BJ2MQKqP-nBZ0FGSoEB651FAxeWoR-Dyrk,1316
|
|
2
|
-
cppmake-127.0.13.dist-info/METADATA,sha256=w2BadwY1t12izmkr8H3UKpGTiV5Vg2XR9vBHqdlgV6w,267
|
|
3
|
-
cppmake-127.0.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
4
|
-
cppmake-127.0.13.dist-info/entry_points.txt,sha256=dK_4GLQPM14Sb1Fawz8fzllNitvsv24n91WpaH-h_m8,50
|
|
5
|
-
cppmake-127.0.13.dist-info/top_level.txt,sha256=uH5XeYydYK0aWCewtK8qf5yjSkXO2tvS9qguV8GVRp0,8
|
|
6
|
-
cppmake-127.0.13.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
cppmake
|
|
File without changes
|