Skip to content

Commit 07cf5fb

Browse files
committed
Remove pip dependencies from conda since they are already in pyproject.toml
1 parent d1b6c0e commit 07cf5fb

File tree

2 files changed

+25
-33
lines changed

2 files changed

+25
-33
lines changed

conda.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,3 @@ dependencies:
1010
- ceres-solver=2.1
1111
- conda-forge::llvm-openmp
1212
- conda-forge::cxx-compiler
13-
- pip
14-
- pip:
15-
- cloudpickle==3.1.1
16-
- ExifRead==3.3.1
17-
- Flask==3.1.1
18-
- fpdf2==2.8.3
19-
- joblib==1.5.1
20-
- matplotlib==3.5.1
21-
- networkx==3.4.2
22-
- numpy==1.21.5
23-
- Pillow==9.0.1
24-
- pyproj>=3.3.0
25-
- pytest==8.4.0
26-
- python-dateutil==2.8.1
27-
- PyYAML>=5.4.1
28-
- scipy==1.8.0
29-
- Sphinx==4.2.0
30-
- xmltodict==0.14.2
31-
- wheel
32-
- sphinx_rtd_theme

doc/source/building.rst

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@
44
Building
55
========
66

7+
Quick start
8+
-----------
9+
To build OpenSfM, follow these steps:
10+
11+
1. Download the OpenSfM code from Github
12+
13+
git clone --recursive https://github.com/mapillary/OpenSfM
14+
15+
2. Install the dependencies (we recommend using conda)
16+
17+
conda env create --file conda.yml --yes
18+
conda activate opensfm
19+
20+
3. Build OpenSfM
21+
22+
pip install -e .
23+
24+
725
Download
826
--------
927

@@ -20,7 +38,7 @@ If you already have the code or you downloaded a release_, make sure to update t
2038
Install dependencies
2139
--------------------
2240

23-
OpenSfM depends on multiple libraries (OpenCV_, `Ceres Solver`_, ...) and python packages that need to be installed before building it.
41+
OpenSfM depends on multiple libraries (OpenCV_, `Ceres Solver`_, ...) that need to be installed before building it.
2442

2543
The way to install these dependencies depends on your system. We recommend using a virtual environment manager such as anaconda or miniconda, not to mess up with your current setup. Anaconda will take care of installing both systems and python dependencies.
2644

@@ -42,7 +60,7 @@ and you are ready to build OpenSfM.
4260
Installing dependencies on Ubuntu
4361
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4462

45-
If you are not using conda, see this `Dockerfile <https://github.com/mapillary/OpenSfM/blob/main/Dockerfile>`_ for the commands to install all dependencies on Ubuntu 20.04.
63+
If you are not using conda, see this `Dockerfile.ubuntu24 <https://github.com/mapillary/OpenSfM/blob/main/Dockerfile.ubuntu24>`_ for the commands to install all dependencies on Ubuntu 24.04.
4664

4765

4866
Installing dependencies on MacOSX
@@ -73,28 +91,22 @@ Then install OpenCV, Ceres, SuiteSparse and LAPACK (this will take a while)::
7391

7492
vcpkg install opencv4 ceres ceres[suitesparse] lapack suitesparse --triplet x64-windows
7593

76-
Finally install the PIP requirements::
77-
78-
pip install -r requirements.txt
79-
8094

8195
Building the library
8296
--------------------
8397

8498
Once the dependencies have been installed, you can build OpenSfM by running the following command from the main folder::
8599

86-
python setup.py build
100+
pip install -e .
101+
102+
This will first install python dependencies on your current python environment, and then build OpenSfM and install it in editable mode.
87103

88104
Building Docker images
89105
----------------------
90106

91-
Once dependencies have been installed, you can build OpenSfM Docker images by running the following command from the main folder::
92-
93-
docker build -t opensfm -f Dockerfile .
94-
95-
To build an image using the Ceres 2 solver, use::
107+
You can also use OpenSfM inside docker. We provide example Dockerfiles for Ubuntu 20.04 and 24.04. Build it by running the following command from the main folder::
96108

97-
docker build -t opensfm:ceres2 -f Dockerfile.ceres2 .
109+
docker build -t opensfm.ubuntu24 -f Dockerfile.ubuntu24 .
98110

99111
Building the documentation
100112
--------------------------

0 commit comments

Comments
 (0)