Skip to content

Commit

Permalink
Merge pull request #205 from robotpy/TheTripleV-patch-1
Browse files Browse the repository at this point in the history
Fix getting version for package not it root of repo
  • Loading branch information
virtuald committed Jun 26, 2023
2 parents 2c75fc4 + ff0782f commit 370ff14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion robotpy_build/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ def prepare(self):
base_package_path = self.base_package_path
os.makedirs(base_package_path, exist_ok=True)
self.setup_kwargs["version"] = get_version(
write_to=join(base_package_path, "version.py"), fallback_version="master"
write_to=join(base_package_path, "version.py"),
fallback_version="master",
search_parent_directories=True,
)

self.pkgcfg = PkgCfgProvider()
Expand Down

0 comments on commit 370ff14

Please sign in to comment.