Skip to content

Commit

Permalink
feat: call package manager module to allow self update
Browse files Browse the repository at this point in the history
  • Loading branch information
xxthunder committed Sep 23, 2024
1 parent 24b6887 commit db9cd4b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: true
- name: install tools and run Pester
Expand Down
1 change: 1 addition & 0 deletions bootstrap.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function Convert-CustomObjectToHashtable {
function Get-BootstrapConfig {
$bootstrapConfig = @{
python_version = "3.11"
python_package_manager = "poetry"
scoop_installer = "https://raw.githubusercontent.com/xxthunder/ScoopInstall/v1.0.0/install.ps1"
scoop_installer_with_repo_arg = $false
scoop_default_bucket_base_url = "https://raw.githubusercontent.com/ScoopInstaller/Main/master/bucket"
Expand Down
2 changes: 1 addition & 1 deletion bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def run(self) -> int:
if pypi_source:
pip_args.extend(["--trusted-host", urlparse(pypi_source.url).hostname])
self.virtual_env.pip(pip_args)
self.virtual_env.run([self.package_manager_name, "install", *package_manager_args])
self.virtual_env.run(["python", "-m", self.package_manager_name, "install", *package_manager_args])
return 0

@staticmethod
Expand Down

0 comments on commit db9cd4b

Please sign in to comment.