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

Commit bbfc19e

Browse files
author
Matthias Koeppe
committed
build/pkgs/sagelib/src: Apply PEP 517 changes
1 parent 310ebd1 commit bbfc19e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../src/pyproject.toml

build/pkgs/sagelib/src/setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
### Set source directory
1919
#########################################################
2020

21+
# PEP 517 builds do not have . in sys.path
22+
sys.path.insert(0, os.path.dirname(__file__))
23+
2124
import sage.env
2225
sage.env.SAGE_SRC = os.getcwd()
2326
from sage.env import *

0 commit comments

Comments
 (0)