powermake 3.0.0b2__tar.gz → 3.0.2__tar.gz
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.
- {powermake-3.0.0b2 → powermake-3.0.2}/PKG-INFO +2 -2
- powermake-3.0.2/powermake/__version__.py +1 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/linkers/__init__.py +5 -3
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/linkers/gnu.py +21 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/package/__init__.py +1 -1
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/zsh_completions/__init__.py +10 -7
- {powermake-3.0.0b2 → powermake-3.0.2}/pyproject.toml +1 -1
- powermake-3.0.0b2/powermake/__version__.py +0 -1
- {powermake-3.0.0b2 → powermake-3.0.2}/.github/workflows/pypi_release.yml +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/.github/workflows/tests_macos_arm64.yml +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/.github/workflows/tests_macos_x64.yml +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/.github/workflows/tests_ubuntu_arm64.yml +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/.github/workflows/tests_ubuntu_x64.yml +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/.github/workflows/tests_windows_x64.yml +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/.github/workflows/weekly_package_compile.yml +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/.gitignore +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/CONTRIBUTING.md +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/LICENSE.txt +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/README.md +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/coverage.svg +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/documentation.md +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/examples.md +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/__init__.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/__main__.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/architecture.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/archivers/README.md +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/archivers/__init__.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/archivers/common.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/archivers/gnu.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/archivers/msvc.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/args_parser.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/cache.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/compilers/README.md +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/compilers/__init__.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/compilers/asm.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/compilers/common.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/compilers/gnu.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/compilers/msvc.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/compilers/rc.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/config.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/display.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/exceptions.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/generation/__init__.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/generation/compile_commands.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/generation/gnu_makefile.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/generation/powermake.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/generation/vscode.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/interactive_config.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/linkers/README.md +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/linkers/common.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/linkers/msvc.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/operation.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/package/build_systems.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/package/git_repos.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/package/lib.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/package/utils.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/py.typed +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/run_another.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/search_visual_studio.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/shared_linkers/README.md +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/shared_linkers/__init__.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/shared_linkers/common.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/shared_linkers/gnu.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/shared_linkers/msvc.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/tools.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/utils.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/version_parser.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/powermake/zsh_completions/_python-powermake +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/compile_all_libs/generate_matrix_svg.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/compile_all_libs/makefile.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/compile_all_libs/windows_config.json +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/generate_badge.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/lib_depend/main.c +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/lib_depend/makefile.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/lib_intermediate/makefile.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/library/makefile.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/library/multiply_linux.s +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/library/multiply_linux_arm.s +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/library/multiply_macos.s +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/library/multiply_macos_arm.s +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/library/multiply_windows.s +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/library/my_lib.c +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/library/my_lib.h +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/library/subtract_linux.asm +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/library/subtract_linux_arm.s +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/library/subtract_macos.asm +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/library/subtract_macos_arm.s +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/library/subtract_windows.asm +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/library/subtract_windows_masm.asm +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/multiplatform/icon.ico +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/multiplatform/linux_config1.json +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/multiplatform/linux_config2.json +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/multiplatform/linux_config3.json +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/multiplatform/main.cpp +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/multiplatform/makefile.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/multiplatform/ressource.rc +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/multiplatform/test.c +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/multiplatform/windows_config1.json +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/multiplatform/windows_config2.json +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/multiplatform/windows_config3.json +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/multiplatform/windows_config4.json +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/nocross_tests.sh +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/parent/makefile.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/parent/powermake_config.json +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/see_gcc_weverything.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/tests.bat +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/tests.sh +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/units/tests_architecture.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/units/tests_cache.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/units/tests_compile_commands.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/units/tests_config.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/units/tests_display.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/units/tests_exceptions.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/units/tests_flags_translation.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/units/tests_init.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/units/tests_interactive_config.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/units/tests_main.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/units/tests_operation.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/units/tests_package.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/units/tests_utils.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/units/tests_version.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/use_zlib/main.c +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tests/use_zlib/makefile.py +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tutorials/01-first-powermake/README.md +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tutorials/02-ide-setup/README.md +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tutorials/02-ide-setup/code_screenshot.png +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tutorials/03-crossplatform-library/README.md +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tutorials/04-multiple-targets/README.md +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tutorials/05-configuration-and-crosscompilation/README.md +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tutorials/06-package-manager/README.md +0 -0
- {powermake-3.0.0b2 → powermake-3.0.2}/tutorials/README.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: powermake
|
|
3
|
-
Version:
|
|
3
|
+
Version: v3.0.2
|
|
4
4
|
Summary: Yet another makefile tool. This one is meant to be super fast, super easy and crossplatform while leaving full power to the user at any time.
|
|
5
5
|
Project-URL: Homepage, https://github.com/mactul/powermake
|
|
6
6
|
Project-URL: Issues, https://github.com/mactul/powermake/issues
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "v3.0.2"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
import typing as T
|
|
53
53
|
|
|
54
54
|
from .common import Linker
|
|
55
|
-
from .gnu import LinkerGNU, LinkerLD, LinkerGCC, LinkerClang, LinkerGPlusPlus, LinkerClangPlusPlus, LinkerMinGW, LinkerMinGWPlusPlus, LinkerMinGWLD
|
|
55
|
+
from .gnu import LinkerGNU, LinkerLD, LinkerGCC, LinkerClang, LinkerGPlusPlus, LinkerClangPlusPlus, LinkerMinGW, LinkerMinGWPlusPlus, LinkerMinGWLD, LinkerLLVM_Link
|
|
56
56
|
from .msvc import LinkerMSVC, LinkerClang_CL
|
|
57
57
|
|
|
58
58
|
__all__ = [
|
|
@@ -67,7 +67,8 @@ __all__ = [
|
|
|
67
67
|
"LinkerMinGWPlusPlus",
|
|
68
68
|
"LinkerMinGWLD",
|
|
69
69
|
"LinkerMSVC",
|
|
70
|
-
"LinkerClang_CL"
|
|
70
|
+
"LinkerClang_CL",
|
|
71
|
+
"LinkerLLVM_Link"
|
|
71
72
|
]
|
|
72
73
|
|
|
73
74
|
_linker_types: T.Dict[str, T.Callable[[], Linker]] = {
|
|
@@ -82,7 +83,8 @@ _linker_types: T.Dict[str, T.Callable[[], Linker]] = {
|
|
|
82
83
|
"clang-cl": LinkerClang_CL,
|
|
83
84
|
"mingw": LinkerMinGW,
|
|
84
85
|
"mingw++": LinkerMinGWPlusPlus,
|
|
85
|
-
"mingw-ld": LinkerMinGWLD
|
|
86
|
+
"mingw-ld": LinkerMinGWLD,
|
|
87
|
+
"llvm-link": LinkerLLVM_Link,
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
|
|
@@ -226,3 +226,24 @@ class LinkerMinGWLD(LinkerLD):
|
|
|
226
226
|
# We need the .exe so there is no way under Linux to ask mingw and end up with gcc
|
|
227
227
|
def __init__(self, path: T.Union[str, T.List[str]] = ["x86_64-w64-mingw32-ld", "ld.exe"]):
|
|
228
228
|
super().__init__(path)
|
|
229
|
+
|
|
230
|
+
class LinkerLLVM_Link(Linker):
|
|
231
|
+
type: T.ClassVar = "llvm-link"
|
|
232
|
+
|
|
233
|
+
def __init__(self, path: T.Union[str, T.List[str]] = "llvm-link"):
|
|
234
|
+
super().__init__(path)
|
|
235
|
+
|
|
236
|
+
def format_args(self, shared_libs: T.List[str], flags: T.List[T.Union[str, T.Tuple[str, ...]]]) -> T.List[str]:
|
|
237
|
+
return self.translate_flags(flags)
|
|
238
|
+
|
|
239
|
+
def basic_link_command(self, outputfile: str, objectfiles: T.Iterable[str], archives: T.List[str] = [], args: T.List[str] = []) -> T.List[str]:
|
|
240
|
+
return [self.path, "-o", outputfile, *objectfiles, *archives, *args]
|
|
241
|
+
|
|
242
|
+
def check_if_arg_exists(self, arg: T.Union[str, T.Tuple[str, ...]]) -> bool:
|
|
243
|
+
if isinstance(arg, tuple):
|
|
244
|
+
return subprocess.run([self.path, *arg, get_empty_file()], stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL).returncode == 0
|
|
245
|
+
else:
|
|
246
|
+
return subprocess.run([self.path, arg, get_empty_file()], stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL).returncode == 0
|
|
247
|
+
|
|
248
|
+
def get_lib_dirs(self, flags: T.List[T.Union[str, T.Tuple[str, ...]]]) -> T.Set[str]:
|
|
249
|
+
return set()
|
|
@@ -100,7 +100,7 @@ def linux_escalate_command(command: T.List[str], pref: T.Union[None, T.List[str]
|
|
|
100
100
|
global _privilege_escalator
|
|
101
101
|
|
|
102
102
|
if os.getuid() == 0:
|
|
103
|
-
return
|
|
103
|
+
return command
|
|
104
104
|
|
|
105
105
|
if _privilege_escalator is None:
|
|
106
106
|
for auth in (pref, ["pkexec"], ["run0", "--background="], ["sudo"], ["doas"], ["su", "-c"]):
|
|
@@ -66,14 +66,17 @@ def update_zshenv() -> None:
|
|
|
66
66
|
if line.endswith('argcomplete/bash_completion.d "${fpath[@]}" )\n'):
|
|
67
67
|
# argcomplete is below powermake or powermake is not installed at all
|
|
68
68
|
break
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
try:
|
|
70
|
+
with open(os.path.expanduser("~/.zshenv"), "w") as zshenv:
|
|
71
|
+
for line in zshenv_lines:
|
|
72
|
+
if not line.endswith('powermake/zsh_completions "${fpath[@]}" )\n'):
|
|
73
|
+
zshenv.write(line)
|
|
74
|
+
zshenv.write('\n' + 'fpath=( ' + os.path.dirname(__file__) + ' "${fpath[@]}" )\n')
|
|
74
75
|
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
print(hint_text("zsh completions have been updated, run `exec zsh` to benefit from PowerMake completions."))
|
|
77
|
+
shutil.rmtree(os.path.expanduser("~/.zcompdump"), ignore_errors=True)
|
|
78
|
+
except OSError:
|
|
79
|
+
pass
|
|
77
80
|
|
|
78
81
|
|
|
79
82
|
if shutil.which("zsh") is not None:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "v3.0.0-beta2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{powermake-3.0.0b2 → powermake-3.0.2}/tutorials/05-configuration-and-crosscompilation/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|