Skip to content

Commit

Permalink
f4pga/setup: use glob pattern instead of a custom func
Browse files Browse the repository at this point in the history
Signed-off-by: Unai Martinez-Corral <[email protected]>
  • Loading branch information
umarcor committed Sep 2, 2022
1 parent 90560a0 commit 94b8b09
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions f4pga/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,6 @@ def get_requirements(file: Path) -> List[str]:
sf = "symbiflow"
shwrappers = "f4pga.wrappers.sh.__init__"

aux_files = []


def get_aux_files(root: Path, cur_dir: Path):
for e in cur_dir.iterdir():
if e.is_file():
aux_files.append(str(e.relative_to(root)))
elif e.is_dir():
get_aux_files(root, e)


get_aux_files(packagePath, packagePath / "aux")


setuptools_setup(
name=packagePath.name,
Expand All @@ -93,7 +80,7 @@ def get_aux_files(root: Path, cur_dir: Path):
url="https://github.com/chipsalliance/f4pga",
package_dir={"f4pga": "."},
package_data={
"f4pga": aux_files,
"f4pga": ["aux/**/*.tcl"],
"f4pga.flows": ["*.yml"],
"f4pga.wrappers.sh": [
"xc7/*.f4pga.sh",
Expand Down

0 comments on commit 94b8b09

Please sign in to comment.