Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit b3ea086

Browse files
author
Matthias Koeppe
committed
sage_setup: Import setuptools before importing distutils, so that setuptools can replace distutils by its own vendored copy
1 parent 673f99c commit b3ea086

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

src/sage_setup/command/sage_build.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Import setuptools before importing distutils, so that setuptools
2+
# can replace distutils by its own vendored copy.
3+
import setuptools
4+
15
from distutils import log
26
from distutils.command.build import build
37

src/sage_setup/command/sage_build_cython.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
import sys
99
import time
1010
import json
11+
12+
# Import setuptools before importing distutils, so that setuptools
13+
# can replace distutils by its own vendored copy.
14+
import setuptools
15+
1116
from distutils import log
1217
from setuptools import Command
1318

src/sage_setup/command/sage_build_ext.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import os
22
import errno
3+
4+
# Import setuptools before importing distutils, so that setuptools
5+
# can replace distutils by its own vendored copy.
6+
import setuptools
7+
38
from distutils import log
49
from distutils.command.build_ext import build_ext
510
from distutils.dep_util import newer_group

src/sage_setup/command/sage_install.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
import os
66
import time
7+
8+
# Import setuptools before importing distutils, so that setuptools
9+
# can replace distutils by its own vendored copy.
10+
import setuptools
11+
712
from distutils import log
813
from distutils.command.install import install
914

0 commit comments

Comments
 (0)