conda / conda-build

Commands and tools for building conda packages
https://docs.conda.io/projects/conda-build/
Other
382 stars 423 forks source link

Unexpected error when using noarch_python #791

Closed jni closed 1 month ago

jni commented 8 years ago

I'm trying and failing to create a conda package for a pure Python library. Building for OSX (my current system) worked fine, but when I added:

build:
  noarch_python: True

to my recipe, I got the following error:

Traceback (most recent call last):
  File "/Users/nuneziglesiasj/anaconda/bin/conda-build", line 5, in <module>
    sys.exit(main())
  File "/Users/nuneziglesiasj/anaconda/lib/python2.7/site-packages/conda_build/main_build.py", line 192, in main
    args_func(args, p)
  File "/Users/nuneziglesiasj/anaconda/lib/python2.7/site-packages/conda_build/main_build.py", line 486, in args_func
    args.func(args, p)
  File "/Users/nuneziglesiasj/anaconda/lib/python2.7/site-packages/conda_build/main_build.py", line 409, in execute
    include_recipe=args.include_recipe)
  File "/Users/nuneziglesiasj/anaconda/lib/python2.7/site-packages/conda_build/build.py", line 492, in build
    noarch_python.transform(m, sorted(files2 - files1))
  File "/Users/nuneziglesiasj/anaconda/lib/python2.7/site-packages/conda_build/noarch_python.py", line 87, in transform
    assert 'py_' in m.dist()
AssertionError

Conda info:

Using Anaconda Cloud api site https://api.anaconda.org
Current conda install:

             platform : osx-64
        conda version : 3.19.3
  conda-build version : 1.19.0
       python version : 2.7.10.final.0
     requests version : 2.9.1
     root environment : /Users/nuneziglesiasj/anaconda  (writable)
  default environment : /Users/nuneziglesiasj/anaconda
     envs directories : /Users/nuneziglesiasj/anaconda/envs
        package cache : /Users/nuneziglesiasj/anaconda/pkgs
         channel URLs : http://repo.continuum.io/pkgs/free/osx-64/
                        http://repo.continuum.io/pkgs/free/noarch/
                        http://repo.continuum.io/pkgs/pro/osx-64/
                        http://repo.continuum.io/pkgs/pro/noarch/
                        http://conda.binstar.org/jni/osx-64/
                        http://conda.binstar.org/jni/noarch/
          config file : /Users/nuneziglesiasj/.condarc
    is foreign system : False
jakirkham commented 8 years ago

Looks like a dup of this issue ( https://github.com/conda/conda-build/issues/542 ).

jakirkham commented 7 years ago

Have you tried again with noarch: python?

github-actions[bot] commented 2 months ago

Hi there, thank you for your contribution!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.

If you would like this issue to remain open please:

  1. Verify that you can still reproduce the issue at hand
  2. Comment that the issue is still reproducible and include:
    • What OS and version you reproduced the issue on
    • What steps you followed to reproduce the issue

NOTE: If this issue was closed prematurely, please leave a comment.

Thanks!