Skip to content
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
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ Authors:
Michał Górny
Mukunda Rao Katta
Na'aman Hirschfeld
Nicholas Williams
Nicolas Rybowski
Nicolás Sanguinetti
Nikita Kartashov
Expand Down
8 changes: 8 additions & 0 deletions pygit2/_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,13 @@ def get_libgit2_paths() -> tuple[Path, dict[str, list[str]]]:
'libraries': ['git2'],
'include_dirs': [str(x) for x in include_dirs],
'library_dirs': [str(x) for x in library_dirs],
# For debugging memory issues (segfaults) during development, uncomment the
# following lines and rebuild everything. YMMV
# 'extra_compile_args': [
# '-fsanitize=address',
# '-fsanitize-address-use-after-scope',
# '-fsanitize-address-use-odr-indicator',
# ],
# 'extra_link_args': ['-fsanitize=address'],
},
)
8 changes: 3 additions & 5 deletions pygit2/_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@
# Boston, MA 02110-1301, USA.

"""
This is an special module, it provides stuff used by by pygit2 at run-time.
This is a special module, it provides stuff used by pygit2 at run-time.
"""

# Import from the Standard Library
import codecs
import sys
from pathlib import Path

Expand Down Expand Up @@ -89,9 +88,8 @@
]
h_source = []
for h_file in h_files:
h_file = dir_path / 'decl' / h_file # type: ignore
with codecs.open(h_file, 'r', 'utf-8') as f:
h_source.append(f.read())
h_path = dir_path / 'decl' / h_file
h_source.append(h_path.read_text(encoding='utf-8'))

C_HEADER_SRC = '\n'.join(h_source)

Expand Down
Loading
Loading