Skip to content

Commit

Permalink
Fix packaging error after #163 (#211)
Browse files Browse the repository at this point in the history
* Fix bad merge

* Don't load packaging when loading micropip
  • Loading branch information
ryanking13 authored Feb 20, 2025
1 parent 9f63157 commit 71a87c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions micropip/package_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
List,
)

from packaging.markers import default_environment

from . import _mock_package, package_index
from ._compat import CompatibilityLayer, compatibility_layer
from ._utils import get_files_in_distribution, get_root
from ._vendored.packaging.src.packaging.markers import default_environment
from .constants import FAQ_URLS
from .freeze import freeze_lockfile
from .logging import setup_logging
Expand Down
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def selenium_standalone_micropip(selenium_standalone, wheel_path):
selenium_standalone.run_js(
f"""
await pyodide.loadPackage("{base_url + wheel_file.name}");
await pyodide.loadPackage(["packaging"]);
pyodide.runPython("import micropip");
"""
)
Expand Down

0 comments on commit 71a87c1

Please sign in to comment.