Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.zip release format breaks Anaconda build #29

Closed
bmcguirk opened this issue Feb 19, 2020 · 1 comment
Closed

.zip release format breaks Anaconda build #29

bmcguirk opened this issue Feb 19, 2020 · 1 comment

Comments

@bmcguirk
Copy link

Hi there -

Just wanted to pass along that having your release on Pypi as a .zip file instead of a .tar.gz breaks the Anaconda build process. Some part of the conda build process assumes a .tar.gz file downloaded from Pypi. The only way to fix the recipe is to manually change the meta.yaml file that gets generated to specify .zip.

Here's my conda info:

     active environment : None
       user config file : $HOME\.condarc
 populated config files : $HOME\.condarc
          conda version : 4.8.2
    conda-build version : 3.17.8
         python version : 3.7.3.final.0
       virtual packages : __cuda=10.1
       base environment : C:\ProgramData\Anaconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
          package cache : C:\ProgramData\Anaconda3\pkgs
                          $HOME\.conda\pkgs
                          $HOME\AppData\Local\conda\conda\pkgs
       envs directories : C:\ProgramData\Anaconda3\envs
                          $HOME\.conda\envs
                          $HOME\AppData\Local\conda\conda\envs
               platform : win-64
             user-agent : conda/4.8.2 requests/2.21.0 CPython/3.7.3 Windows/10 Windows/10.0.17134
          administrator : True
             netrc file : None
           offline mode : False

To reproduce:

$ conda skeleton pypi graphviz
$ conda build graphviz

FYI - this is true if you run conda skeleton pypi graphviz and conda skeleton pypi graphviz --recursive.

Here is the output:

Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
WARNING: symlink_conda() is deprecated.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... done
WARNING: symlink_conda() is deprecated.
Source cache directory is: C:\ProgramData\Anaconda3\conda-bld\src_cache
INFO:conda_build.source:Source cache directory is: C:\ProgramData\Anaconda3\conda-bld\src_cache
INFO conda_build.source:download_to_cache(43): Source cache directory is: C:\ProgramData\Anaconda3\conda-bld\src_cache
Downloading source to cache: graphviz-0.13.2_60acbeee34.tar.gz
INFO:conda_build.source:Downloading source to cache: graphviz-0.13.2_60acbeee34.tar.gz
INFO conda_build.source:download_to_cache(66): Downloading source to cache: graphviz-0.13.2_60acbeee34.tar.gz
Downloading https://pypi.io/packages/source/g/graphviz/graphviz-0.13.2.tar.gz
INFO:conda_build.source:Downloading https://pypi.io/packages/source/g/graphviz/graphviz-0.13.2.tar.gz
INFO conda_build.source:download_to_cache(80): Downloading https://pypi.io/packages/source/g/graphviz/graphviz-0.13.2.tar.gz
Error: HTTP 404 NOT FOUND for url <https://pypi.io/packages/source/g/graphviz/graphviz-0.13.2.tar.gz>
Elapsed: 00:00.408915

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
WARNING:conda_build.source:Error: HTTP 404 NOT FOUND for url <https://pypi.io/packages/source/g/graphviz/graphviz-0.13.2.tar.gz>
Elapsed: 00:00.408915

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
WARNING conda_build.source:download_to_cache(84): Error: HTTP 404 NOT FOUND for url <https://pypi.io/packages/source/g/graphviz/graphviz-0.13.2.tar.gz>

If you modify the recipe meta.yaml file to manually point to a .zip extension, it just works.

You're within your rights to say that maybe this is a conda or Pypi issue, but I thought I'd document it here.

@bmcguirk
Copy link
Author

What an idiot. Wrong repo. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant