mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
enhance: add skip 3rdparty env var (#35736)
issue: #35611 - call `conan install` is too slow for developer, add option to skip it. Signed-off-by: chyezh <chyezh@outlook.com>
This commit is contained in:
parent
b3089b5bdc
commit
70bc0e4538
@ -195,6 +195,12 @@ To build the Milvus project, run the following command:
|
|||||||
$ make
|
$ make
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Milvus uses `conan` to manage 3rd-party dependencies. `conan` will check the consistency of these dependencies every time you run `make`. This process can take a considerable amount of time, especially if the network is poor. If you make sure that the 3rd-party dependencies are consistent, you can use the following command to skip this step:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ make SKIP_3RDPARTY=1
|
||||||
|
```
|
||||||
|
|
||||||
If this command succeeds, you will now have an executable at `bin/milvus` in your Milvus project directory.
|
If this command succeeds, you will now have an executable at `bin/milvus` in your Milvus project directory.
|
||||||
|
|
||||||
If you want to run the `bin/milvus` executable on the host machine, you need to set `LD_LIBRARY_PATH` temporarily:
|
If you want to run the `bin/milvus` executable on the host machine, you need to set `LD_LIBRARY_PATH` temporarily:
|
||||||
|
|||||||
@ -16,6 +16,12 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
# Skip the installation and compilation of third-party code,
|
||||||
|
# if the developer is certain that it has already been done.
|
||||||
|
if [[ ${SKIP_3RDPARTY} -eq 1 ]]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
SOURCE="${BASH_SOURCE[0]}"
|
SOURCE="${BASH_SOURCE[0]}"
|
||||||
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
|
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
|
||||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user