Skip to content

build: fixed for pip #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extractnet/blocks.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import re
import numpy as np
import math

from compat import str_list_cast, str_dict_cast, str_block_cast, str_block_list_cast, str_cast, bytes_cast
from .compat import str_list_cast, str_dict_cast, str_block_cast, str_block_list_cast, str_cast, bytes_cast

RE_HTML_ENCODING = re.compile(
b'<\s*meta[^>]+charset\s*?=\s*?[\'"]?([^>]*?)[ /;\'">]',
Expand Down
4 changes: 2 additions & 2 deletions extractnet/lcs.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cimport numpy as np
from libcpp.string cimport string
from libcpp.vector cimport vector
from libcpp cimport bool
from compat import bytes_list_cast
from .compat import bytes_list_cast

cdef inline int int_max(int a, int b): return a if a >= b else b

Expand Down Expand Up @@ -70,7 +70,7 @@ def print_diff(X, Y):
diff.append("- " + X[i-1])
i -= 1
diff.reverse()
print diff
print(diff)



Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[build-system]
requires = [
"setuptools",
"lxml",
"numpy",
"Cython>=0.21.1",
]
build_backend = "setuptools.build_meta"
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,11 @@ def find_libxml2_include():
ext_modules=cythonize(ext_modules),
setup_requires = [
'lxml',
'numpy',
'Cython>=0.21.1',
],
install_requires=[
'cchardet >= 2.1.7',
'cchardet>=2.1.7',
'beautifulsoup4==4.9.3',
'ftfy>=4.1.0,<5.0.0',
'numpy>=1.19.0',
Expand Down