This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 916
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to install pip editable in dev mode and remove dependency on s…
…etuptools_scm. 1. And remove setuptools_scm dependencies due to permission issues with pip and scm 2. Add instruction that removes the need to update pip if any changes are made to utils package. 3. Document the known issue with setuptools_scm and pip that fails to give setuptools_scm permission to scm metadata files. Author: Emmanuel Awa <[email protected]> Date: Tue Sep 17 20:58:48 2019 +0000
- Loading branch information
Emmanuel Awa
committed
Sep 18, 2019
1 parent
50b1738
commit 693931b
Showing
5 changed files
with
12 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,13 +96,15 @@ If you are using the DSVM, you can [connect to JupyterHub](https://docs.microsof | |
<p> | ||
A setup.py file is provided in order to simplify the installation of this utilities in this repo from the main directory. | ||
|
||
To install, please run the command below | ||
To install the package, please run the command below (from directory root) | ||
|
||
python setup.py install | ||
pip install -e . | ||
|
||
It is also possible to install directly from Github, which is the best way to utilize the `utils_nlp` package in external projects. | ||
Running the command tells pip to install the `utils_nlp` package from source in [development mode](https://setuptools.readthedocs.io/en/latest/setuptools.html#development-mode). This just means that any updates to `utils_nlp` source directory will immediately be reflected in the installed package without needing to reinstall; a very useful practice for a package with constant updates. | ||
|
||
pip install -e [email protected]:microsoft/nlp.git@master#egg=utils_nlp | ||
> It is also possible to install directly from Github, which is the best way to utilize the `utils_nlp` package in external projects (while still reflecting updates to the source as it's installed as an editable `'-e'` package). | ||
> `pip install -e [email protected]:microsoft/nlp.git@master#egg=utils_nlp` | ||
Either command, from above, makes `utils_nlp` available in your conda virtual environment. You can verify it was properly installed by running: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,16 @@ | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. | ||
|
||
from setuptools_scm import get_version | ||
|
||
|
||
__title__ = "Microsoft NLP" | ||
__author__ = "AI CAT at Microsoft" | ||
__license__ = "MIT" | ||
__copyright__ = "Copyright 2018-present Microsoft Corporation" | ||
__version__ = "1.0.0" | ||
|
||
# Synonyms | ||
TITLE = __title__ | ||
AUTHOR = __author__ | ||
LICENSE = __license__ | ||
COPYRIGHT = __copyright__ | ||
|
||
# Determine semantic versioning automatically | ||
# from git commits if the package is installed | ||
# into your environment, otherwise | ||
# we set version to default for development | ||
try: | ||
__version__ = get_version() | ||
except LookupError: | ||
__version__ = "0.0.0" | ||
|
||
VERSION = __version__ | ||
|