-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial packages repo design implementation
Signed-off-by: Nefo Fortressia <[email protected]>
- Loading branch information
1 parent
1151d7f
commit 9571cbb
Showing
15 changed files
with
511 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ __pycache__/ | |
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
./build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from .download import download_source | ||
from .collections import get_packages | ||
from .build_one import build_one | ||
import asyncio | ||
from hashlib import algorithms_available | ||
import zipfile | ||
import urllib | ||
import tarfile | ||
import requests | ||
import toml | ||
import json | ||
from os import abort, path | ||
import os | ||
from pathlib import Path | ||
import subprocess | ||
import sys | ||
from traceback import print_tb | ||
from typing import Tuple | ||
import click | ||
|
||
from simple_and_kawaii.utils import top_level, get_config | ||
|
||
|
||
@click.command() | ||
def build_deps(): | ||
"""Build native libraries required for Waylovely and Portals.\n | ||
Mostly they are written in C/C++. They'll get installed to the '' folder of the root directory of the Git repository! | ||
This behavior can be changed by changing the "deps-location" path in kawaii/cache_config.json file.""" | ||
config = get_config() | ||
|
||
packages = get_packages(config) | ||
|
||
sources = list() | ||
for package in packages: | ||
package_config = package["config"] | ||
|
||
if "sources" in package_config: | ||
for source in package_config["sources"].keys(): | ||
sources.append((source, package_config["sources"][source])) | ||
|
||
with click.progressbar(length=len(sources), label="Downloading sources") as bar: | ||
for source in sources: | ||
download_source(source[0], source[1], path.join(top_level, ".kawaii-sources"), bar) |
Oops, something went wrong.