Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
fix source build
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed May 20, 2024
1 parent c1b91e8 commit 9167735
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
from glob import glob

from setuptools import setup, Extension
from setuptools import setup, Extension, find_packages

module = Extension(
"bencode_c._bencode",
sources=glob("./src/bencode_c/*.[ch]"),
sources=glob("./src/bencode_c/*.c"),
include_dirs=["./src/bencode_c"],
)

setup(
ext_modules=[module],
packages=find_packages("src"),
package_dir={"": "src"},
)

0 comments on commit 9167735

Please sign in to comment.