snowflakedb / snowflakedb/snowpark-python

SNOW-3010254: Move snowflake.* packages to PEP 420 implicit namespace packages (remove `.pth`-based namespace bootstrap)

Open
#4,052 1 comment 0 reactions 1 assignee View on GitHub

@sfc-gh-yixie is already working on this.

Since Jan 20, 2026.

feature
Dominant language
Python
Stars
341
Forks
155
Avg merge
4d 16h
Merged PRs (30d)
27

Description

Snowflake packages (e.g. snowflake-snowpark-python, snowflake-connector-python) currently rely on setuptools legacy namespace packages, implemented via auto-generated *-nspkg.pth files in site-packages.

Example installed artifact snowflake_snowpark_python-1.39.0-py3.12-nspkg.pth.

This .pth file executes code at interpreter startup to synthesize the snowflake namespace and mutate sys.modules / __path__.

It would be nice to migrate snowflake.* packages to PEP 420 implicit namespace packages, specifically:

  1. Remove namespace_packages = ["snowflake"] and any setuptools legacy namespace configuration
  2. Ensure no snowflake/__init__.py exists in any distribution, all Snowflake subpackages rely on implicit namespace resolution, and stop shipping *-nspkg.pth files in wheels

This would make Snowflake packages behave like modern namespace ecosystems (e.g. google.*).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.