conda-forge / nvcc-feedstock

A conda-smithy repository for nvcc.
BSD 3-Clause "New" or "Revised" License
12 stars 23 forks source link

Overwrite the `libcuda.so` symlink if present #17

Closed jakirkham closed 5 years ago

jakirkham commented 5 years ago

As the libcuda.so symlink could have been added during a previous activation (and deactivation may not have occurred yet, like logging out), the symlink may already be there when we try to create it. In this case, just go ahead and forcibly overwrite the symlink with a new one.

Checklist

Note: Re-rendering is currently broken for this feedstock. ( https://github.com/conda-forge/nvcc-feedstock/issues/18 ) So not handling that in this PR.

conda-forge-linter commented 5 years ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

kkraus14 commented 5 years ago

@jakirkham so if I'm understanding this correctly this is to protect against say:

$(base) conda activate environment_1
$(environment_1) conda activate environment_2

Where both environment_1 and environment_2 have the nvcc package?

jakirkham commented 5 years ago

Almost. It protects against this. Possibly with other steps in-between.

conda activate environment_1
conda activate environment_1