You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps the conda environment History can be utilized to identify when a user has a removed a package from anaconda-project.yml that was previously requested. This might enable to capability of anaconda-project prepare to identify that a package in the live env is missing from the spec and remove it along with its dependencies.
> anaconda-project prepare
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
## Package Plan ##
environment location: /Users/adefusco/AnacondaProjects/history/envs/env
added / updated specs:
- requests
The following NEW packages will be INSTALLED:
asn1crypto pkgs/main/osx-64::asn1crypto-0.24.0-py37_0
cffi pkgs/main/osx-64::cffi-1.12.3-py37hb5b8e2f_0
chardet pkgs/main/osx-64::chardet-3.0.4-py37_1
cryptography pkgs/main/osx-64::cryptography-2.7-py37ha12b0ac_0
idna pkgs/main/osx-64::idna-2.8-py37_0
pycparser pkgs/main/osx-64::pycparser-2.19-py37_0
pyopenssl pkgs/main/osx-64::pyopenssl-19.0.0-py37_0
pysocks pkgs/main/osx-64::pysocks-1.7.0-py37_0
requests pkgs/main/osx-64::requests-2.22.0-py37_0
six pkgs/main/osx-64::six-1.12.0-py37_0
urllib3 pkgs/main/osx-64::urllib3-1.24.2-py37_0
Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
The project is ready to run commands.
Use `anaconda-project list-commands` to see what's available.
Remove package from project file
If I remove requests and run prepare again nothing happens.
> anaconda-project prepare
The project is ready to run commands.
Use `anaconda-project list-commands` to see what's available.
Conda env history
Here's the full output of the conda history of requested packages. Running prepare twice produced two actions and each one had requested 1 package. The link_dists key is a list of the dependent packages for the requested package.
@mcg1969 While it would be really nice if anaconda-project could selectively update, add, and remove packages as needed, I am guessing that the --refresh flag is probably the simplest to implement and maintain. However, it would be very nice if there was some way of checking that the installed packages meet the specified requirements and issuing a warning to use --refresh. This should also work with pip if possible. (See also #332.)
Perhaps the conda environment History can be utilized to identify when a user has a removed a package from anaconda-project.yml that was previously requested. This might enable to capability of
anaconda-project prepare
to identify that a package in the live env is missing from the spec and remove it along with its dependencies.Here's the scenario
Build project file and prepare
Add new package and prepare again
I edit the file to include
requests
Remove package from project file
If I remove requests and run prepare again nothing happens.
Conda env history
Here's the full output of the conda history of requested packages. Running prepare twice produced two actions and each one had requested 1 package. The
link_dists
key is a list of the dependent packages for the requested package.The text was updated successfully, but these errors were encountered: