Skip to content

Commit

Permalink
Merge pull request #1243 from flatironinstitute/dev_fix_version_string
Browse files Browse the repository at this point in the history
fix version string
  • Loading branch information
pgunn authored Dec 8, 2023
2 parents 1f60619 + 9cf2284 commit e8d9b9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions caiman/caimanmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ def do_install_to(targdir: str, inplace: bool = False, force: bool = False) -> N
shutil.copy(stdmovie, os.path.join(targdir, 'example_movies'))
for extrafile in extra_files:
shutil.copy(extrafile, targdir)
if 'CAIMAN_RELEASE' in os.environ:
with open(os.path.join(targdir, 'RELEASE'), 'w') as verfile_fh:
print(f"Version:{caiman.__version__}", file=verfile_fh)
print("Installed " + targdir)


Expand Down
2 changes: 1 addition & 1 deletion caiman/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ def get_caiman_version() -> tuple[str, str]:
for line in sfh:
if ':' in line: # expect a line like "Version:1.3"
_, version = line.rstrip().split(':')
return 'RELF', version
return 'RELEASE', version

# Attempt: 'FILE'
# Right now this samples the utils directory
Expand Down

0 comments on commit e8d9b9d

Please sign in to comment.