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 Aug 25, 2022
1 parent 4efab3f commit a58e880
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 @@ -94,7 +81,7 @@ def get_aux_files(root: Path, cur_dir: Path):
packages=["f4pga", "f4pga.flows", "f4pga.flows.common_modules", "f4pga.wrappers.sh", "f4pga.wrappers.tcl"],
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 a58e880

Please sign in to comment.