Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
P
python-ligo-lw
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 5
    • Merge Requests 5
  • Requirements
    • Requirements
    • List
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Kipp Cannon
  • python-ligo-lw
  • Merge Requests
  • !23

Merged
Created Aug 05, 2020 by Leo Pound Singer@leo-singerContributor

Switch from distutils to setuptools to fix namespace package issues

  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1

Distutils and setuptools projects that populate the same namespace package do not play well together. Setuptools is smart enough to skip installation of the namespace package's dummy __init__.py file and its ancillary .pyc or __pycache__ files, but distutils is not. Distutils projects that use namespace packages are likely to disrupt package managers that protect against two packages trying to install the same files.

It is relatively rare these days to find Python projects that use distutils directly rather than setuptools. In fact, the official Python standard library documentation for distutils (https://docs.python.org/3/library/distutils.html) says:

Most Python users will not want to use this module directly, but instead use the cross-version tools maintained by the Python Packaging Authority.

Switching python-ligo-lw from distutils to setuptools simplifies software packaging.

Edited Aug 05, 2020 by Leo Pound Singer
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: setuptools