mirror of
https://github.com/ryanvolz/radioconda.git
synced 2025-08-01 13:02:41 -04:00
Merge branch 'next' into dev
This commit is contained in:
commit
e3cfceef3f
@ -1,7 +1,6 @@
|
|||||||
name: radioconda
|
name: radioconda
|
||||||
channels:
|
channels:
|
||||||
- conda-forge
|
- conda-forge
|
||||||
- ryanvolz # [win]
|
|
||||||
platforms:
|
platforms:
|
||||||
- linux-64
|
- linux-64
|
||||||
- linux-aarch64
|
- linux-aarch64
|
||||||
@ -29,7 +28,6 @@ dependencies:
|
|||||||
- python
|
- python
|
||||||
# restrict to python 3.8 on Windows for Windows 7 compatibility
|
# restrict to python 3.8 on Windows for Windows 7 compatibility
|
||||||
- python 3.8.* # [win]
|
- python 3.8.* # [win]
|
||||||
- radioconda_console_shortcut # [win]
|
|
||||||
- rtl-sdr
|
- rtl-sdr
|
||||||
- scipy
|
- scipy
|
||||||
- soapysdr
|
- soapysdr
|
||||||
|
7
radioconda_installer.yaml
Normal file
7
radioconda_installer.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
name: radioconda_installer
|
||||||
|
channels:
|
||||||
|
- conda-forge
|
||||||
|
- ryanvolz # [win]
|
||||||
|
dependencies:
|
||||||
|
- mamba
|
||||||
|
- radioconda_console_shortcut # [win]
|
29
rerender.py
29
rerender.py
@ -143,7 +143,7 @@ def render_constructor(
|
|||||||
|
|
||||||
def render_platforms(
|
def render_platforms(
|
||||||
environment_file: pathlib.Path,
|
environment_file: pathlib.Path,
|
||||||
installer_pkg_specs: List[str],
|
installer_environment_file: pathlib.Path,
|
||||||
version: str,
|
version: str,
|
||||||
company: str,
|
company: str,
|
||||||
license_file: pathlib.Path,
|
license_file: pathlib.Path,
|
||||||
@ -192,9 +192,14 @@ def render_platforms(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# add installer-only (base environment) packages and lock those too
|
# add installer-only (base environment) packages and lock those too
|
||||||
|
installer_pkg_spec = conda_lock.conda_lock.parse_environment_file(
|
||||||
|
environment_file=installer_environment_file, platform=platform
|
||||||
|
)
|
||||||
installer_spec = conda_lock.src_parser.LockSpecification(
|
installer_spec = conda_lock.src_parser.LockSpecification(
|
||||||
specs=sorted(locked_env_spec.specs + installer_pkg_specs),
|
specs=sorted(locked_env_spec.specs + installer_pkg_spec.specs),
|
||||||
channels=locked_env_spec.channels,
|
channels=sorted(
|
||||||
|
set(locked_env_spec.channels) | set(installer_pkg_spec.channels)
|
||||||
|
),
|
||||||
platform=locked_env_spec.platform,
|
platform=locked_env_spec.platform,
|
||||||
)
|
)
|
||||||
locked_installer_spec = lock_env_spec(installer_spec, conda_exe)
|
locked_installer_spec = lock_env_spec(installer_spec, conda_exe)
|
||||||
@ -202,7 +207,8 @@ def render_platforms(
|
|||||||
# get a set of only the packages to put in the constructor specification
|
# get a set of only the packages to put in the constructor specification
|
||||||
# taken from the installer-only list and those explicitly selected originally
|
# taken from the installer-only list and those explicitly selected originally
|
||||||
constructor_pkg_names = set(
|
constructor_pkg_names = set(
|
||||||
name_from_pkg_spec(spec) for spec in env_spec.specs + installer_pkg_specs
|
name_from_pkg_spec(spec)
|
||||||
|
for spec in env_spec.specs + installer_pkg_spec.specs
|
||||||
)
|
)
|
||||||
|
|
||||||
# filter the installer spec by the constructor package names
|
# filter the installer spec by the constructor package names
|
||||||
@ -269,11 +275,22 @@ if __name__ == "__main__":
|
|||||||
nargs="?",
|
nargs="?",
|
||||||
default=here / f"{distname}.yaml",
|
default=here / f"{distname}.yaml",
|
||||||
help=(
|
help=(
|
||||||
"YAML file defining an installer distribution, with a 'name' string and"
|
"YAML file defining a distribution, with a 'name' string and"
|
||||||
" 'channels', 'platforms', and 'dependencies' lists."
|
" 'channels', 'platforms', and 'dependencies' lists."
|
||||||
" (default: %(default)s)"
|
" (default: %(default)s)"
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"installer_environment_file",
|
||||||
|
type=pathlib.Path,
|
||||||
|
nargs="?",
|
||||||
|
default=here / f"{distname}_installer.yaml",
|
||||||
|
help=(
|
||||||
|
"YAML file defining additional packages for the installer, with a 'name'"
|
||||||
|
" string and 'channels' and 'dependencies' lists."
|
||||||
|
" (default: %(default)s)"
|
||||||
|
),
|
||||||
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-v",
|
"-v",
|
||||||
"--version",
|
"--version",
|
||||||
@ -331,7 +348,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
constructor_specs = render_platforms(
|
constructor_specs = render_platforms(
|
||||||
environment_file=args.environment_file,
|
environment_file=args.environment_file,
|
||||||
installer_pkg_specs=["mamba"],
|
installer_environment_file=args.installer_environment_file,
|
||||||
version=args.version,
|
version=args.version,
|
||||||
company=args.company,
|
company=args.company,
|
||||||
license_file=args.license_file,
|
license_file=args.license_file,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user