Skip to content

Commit 9876b41

Browse files
committed
Minor fix
1 parent 5c460cb commit 9876b41

File tree

4 files changed

+5
-16
lines changed

4 files changed

+5
-16
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ include pyperformance/data-files/benchmarks/bm_*/*.toml
1616
include pyperformance/data-files/benchmarks/bm_*/*.py
1717
include pyperformance/data-files/benchmarks/bm_*/requirements.txt
1818
include pyperformance/data-files/benchmarks/bm_*/*.pem
19+
recursive-include pyperformance/data-files/benchmarks/bm_*/vendor *
1920
recursive-include pyperformance/data-files/benchmarks/bm_*/data *
2021
recursive-exclude pyperformance/tests *

pyperformance/data-files/benchmarks/bm_2to3/run_benchmark.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414

1515
datadir = os.path.join(os.path.dirname(__file__), 'data', '2to3')
1616
pyfiles = glob.glob(os.path.join(datadir, '*.py.txt'))
17+
command = [sys.executable, "-m", "lib2to3", "-f", "all"] + pyfiles
1718

1819
try:
1920
import lib2to3
2021
except ModuleNotFoundError:
2122
vendor = os.path.join(os.path.dirname(__file__), 'vendor')
2223
subprocess.run([sys.executable, "-m", "pip", "install", vendor])
23-
command = [sys.executable, "-m", "lib2to3", "-f", "all"] + pyfiles
24+
2425
runner.bench_command('2to3', command)

pyperformance/data-files/benchmarks/bm_2to3/vendor/pyproject.toml

Lines changed: 0 additions & 14 deletions
This file was deleted.

pyperformance/data-files/benchmarks/bm_2to3/vendor/setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
version='3.12',
66
description='lib2to3 for Python 3.13+',
77
packages=['lib2to3', 'lib2to3.fixes', 'lib2to3.pgen2'],
8-
package_data={'lib2to3': ['Grammar.txt', 'PatternGrammar.txt']}
8+
package_data={'lib2to3': ['Grammar.txt', 'PatternGrammar.txt']},
9+
include_package_data=True,
910
)

0 commit comments

Comments
 (0)