code stringlengths 3 6.57k |
|---|
os.path.basename(installer_path) |
filename.endswith(ext) |
ValueError(msg) |
last_julia_version(version=None) |
sort_key(ver) |
float(ver.lstrip("v") |
float(f_minor_version(version) |
os.listdir(os.path.join(default_depot_path() |
re.fullmatch(r"v\d+\.\d+", x) |
sorted(filter(lambda ver: sort_key(ver) |
make_symlinks(src_bin, symlink_dir, version) |
os.path.isfile(src_bin) |
raise(ValueError(f"{src_bin} doesn't exist.") |
current_system() |
map(os.path.normpath, os.environ["PATH"].split(os.pathsep) |
print(f"add {symlink_dir} to PATH") |
print(msg) |
os.path.expanduser("~/.bashrc") |
open(rc_file, "a") |
file.writelines("\n# added by jill\n") |
file.writelines(f"export PATH={symlink_dir}:$PATH\n") |
print(f"you need to restart your current shell to update PATH") |
os.makedirs(symlink_dir, exist_ok=True) |
Version(get_exec_version(src_bin) |
len(Version(version) |
len(new_ver.prerelease) |
f_minor_version(version) |
f(version) |
link_list.append("julia") |
os.path.join(symlink_dir, linkname) |
current_system() |
os.path.exists(linkpath) |
os.path.islink(linkpath) |
if (os.path.islink(linkpath) |
os.readlink(linkpath) |
Version(get_exec_version(linkpath) |
show_verbose() |
print(f"old symlink version: {old_ver}") |
print(f"new installation version: {new_ver}") |
print(msg) |
os.remove(linkpath) |
print(f"{color.GREEN}make new symlink {linkpath}{color.END}") |
current_system() |
open(linkpath, 'w') |
f.writelines(['@echo off\n', f'"{src_bin}" %*']) |
os.symlink(src_bin, linkpath) |
copy_root_project(version) |
f_minor_version(version) |
last_julia_version(version) |
os.path.join(default_depot_path() |
os.path.join(env_path, old_ver) |
os.path.join(env_path, f"v{mver}") |
os.path.exists(dest_path) |
os.path.join(env_path, f"v{mver}.bak") |
os.path.exists(bak_path) |
print(f"{color.YELLOW}delete old backup {bak_path}{color.END}") |
shutil.rmtree(bak_path) |
shutil.move(dest_path, bak_path) |
print(f"{color.YELLOW}move {dest_path} to {bak_path}{color.END}") |
shutil.copytree(src_path, dest_path) |
check_installer(package_path, ".tar.gz") |
re.match("(.*) |
f_minor_version(version) |
TarMounter(package_path) |
os.path.join(install_dir, f"julia-{suffix}") |
os.path.exists(dest_path) |
shutil.rmtree(dest_path) |
print(msg) |
shutil.copytree(src_path, dest_path, symlinks=True) |
print(f"{color.GREEN}install Julia to {dest_path}{color.END}") |
os.chmod(dest_path, 0o755) |
os.path.join(dest_path, "bin", "julia") |
current_system() |
make_symlinks(bin_path, symlink_dir, version) |
copy_root_project(version) |
check_installer(package_path, ".dmg") |
DmgMounter(package_path) |
next(filter(lambda x: x.lower() |
startswith('julia') |
os.listdir(root) |
os.path.join(root, appname) |
os.path.join(install_dir, appname) |
os.path.exists(dest_path) |
print(msg) |
shutil.rmtree(dest_path) |
shutil.copytree(src_path, dest_path, symlinks=True) |
print(f"{color.GREEN}install Julia to {dest_path}{color.END}") |
make_symlinks(bin_path, symlink_dir, version) |
copy_root_project(version) |
check_installer(package_path, ".exe") |
f_minor_version(version) |
os.path.exists(dest_path) |
shutil.rmtree(dest_path, ignore_errors=True) |
print(msg) |
Version(version) |
next_patch() |
Version("1.4.0") |
print(f"{color.GREEN}install Julia to {dest_path}{color.END}") |
os.path.join(dest_path, "bin", "julia.exe") |
make_symlinks(bin_path, symlink_dir, version) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.