Skip to content

Update docs for site-packages #157

Description

@KitStarLee

The document states that “By default, Serious Python expects Python dependencies installed into pypackages directory in the root of app directory. You can add additional paths to look for 3rd-party packages using modulePaths parameter”

But in the code,Only Pyodide will use the pypackages folder ? why??
if (platform != "Pyodide") { if (Platform.environment .containsKey(sitePackagesEnvironmentVariable)) { sitePackagesRoot = Platform.environment[sitePackagesEnvironmentVariable]; } sitePackagesRoot = path.join(tempDir.path, defaultSitePackagesDir); if (sitePackagesRoot == null || sitePackagesRoot.isEmpty) { sitePackagesRoot = path.join(currentPath, "build", "site-packages"); } } else { sitePackagesRoot = path.join(tempDir.path, defaultSitePackagesDir); }

Activity

  1. FeodorFitsner commented on Mar 21, 2025

    @FeodorFitsner
    Contributor

    That was changed in the last version. To speed up application start as no large archive should be unarchived.

  2. changed the title [-]Help me!!!! The document and source code do not match[/-] [+]Update docs for site-packages[/+] on Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions