Skip to content

Commit

Permalink
Fix package discovery in setup.py (cvg#209)
Browse files Browse the repository at this point in the history
Added listing all packages for a complete installation using pip (see https://stackoverflow.com/questions/15368054/import-error-on-installed-package-using-setup-py/15368107#15368107 for more details)

Without this the package is unusable - `hloc.utils` and other packages were not being copied to site-packages. I suspect the example notebooks work because the directory is changed to the repo root.
  • Loading branch information
pyetras authored Jul 27, 2022
1 parent b023091 commit c0a69ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pathlib import Path
from setuptools import setup
from setuptools import setup, find_packages

description = ['Tools and baselines for visual localization and mapping']

Expand All @@ -14,7 +14,7 @@
setup(
name='hloc',
version=version,
packages=['hloc'],
packages=find_packages(),
python_requires='>=3.6',
install_requires=dependencies,
author='Paul-Edouard Sarlin',
Expand Down

0 comments on commit c0a69ed

Please sign in to comment.