python-astropy/python-astropy-system-ply.patch
2023-01-07 01:28:11 +01:00

22 lines
865 B
Diff

diff -ur astropy-5.2/astropy/utils/parsing.py astropy-5.2.ply/astropy/utils/parsing.py
--- astropy-5.2/astropy/utils/parsing.py 2022-12-12 11:57:50.000000000 +0100
+++ astropy-5.2.ply/astropy/utils/parsing.py 2023-01-07 00:46:01.246483036 +0100
@@ -82,7 +82,7 @@
reflags : int
Passed to ``ply.lex``.
"""
- from astropy.extern.ply import lex
+ from ply import lex
caller_file = lex.get_caller_module_dict(2)["__file__"]
lextab_filename = os.path.join(os.path.dirname(caller_file), lextab + ".py")
@@ -138,7 +138,7 @@
the output file. This is inserted into a comment in the generated
file.
"""
- from astropy.extern.ply import yacc
+ from ply import yacc
caller_file = yacc.get_caller_module_dict(2)["__file__"]
tab_filename = os.path.join(os.path.dirname(caller_file), tabmodule + ".py")