Skip to content

Commit

Permalink
setup.py: stop using convert_path
Browse files Browse the repository at this point in the history
This is now deprecated in setuptools
  • Loading branch information
MerlijnWajer committed Jun 26, 2024
1 parent 7ed85a3 commit e5804a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import numpy
from setuptools import setup, convert_path
from setuptools import setup
from pathlib import Path
from Cython.Build import cythonize

# Work around bugs in passing CFLAGS to the Cython compilation process
Expand All @@ -9,7 +10,7 @@
if __name__ == '__main__':

main_ns = {}
ver_path = convert_path('internetarchivepdf/const.py')
ver_path = Path('internetarchivepdf/const.py')
with open(ver_path) as ver_file:
exec(ver_file.read(), main_ns)

Expand Down

0 comments on commit e5804a5

Please sign in to comment.