conda.recipe by jreback · Pull Request #281 · pythonnet/pythonnet

@jreback you can add the note in wiki - it is open to everyone:

https://github.com/pythonnet/pythonnet/wiki/Installation

We do not have requirements files yet, due to dependency on .NET/Mono tools and nuget. But I opened an issue for this, since it is a good idea anyway:

#282

I tried your instruction and it is failing badly on me with latest conda and conda-build.

C:\Users\denis.akhiyarov\Downloads\pythonnet>cd pythonnet-clr-recipe\

C:\Users\denis.akhiyarov\Downloads\pythonnet\pythonnet-clr-recipe>conda build co
nda.recipe --python 2.7
Cloning into bare repository 'C:\Python\Python27_32b\conda-bld\git_cache\C_\User
s\denis.akhiyarov\Downloads\pythonnet\pythonnet-clr-recipe'...
fatal: 'C:\Users\denis.akhiyarov\Downloads\pythonnet\pythonnet-clr-recipe' does
not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Cloning into bare repository 'C:\Python\Python27_32b\conda-bld\git_cache\C_\User
s\denis.akhiyarov\Downloads\pythonnet\pythonnet-clr-recipe'...
fatal: 'C:\Users\denis.akhiyarov\Downloads\pythonnet\pythonnet-clr-recipe' does
not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Warning: failed to download source.  If building, will try again after downloadi
ng recipe dependencies.
Error was:
Command '['C:\\Users\\denis.akhiyarov\\AppData\\Local\\Atlassian\\SourceTree\\gi
t_local\\bin\\git.exe', 'clone', '--mirror', 'C:\\Users\\denis.akhiyarov\\Downlo
ads\\pythonnet\\pythonnet-clr-recipe', 'C:\\Python\\Python27_32b\\conda-bld\\git
_cache\\C_\\Users\\denis.akhiyarov\\Downloads\\pythonnet\\pythonnet-clr-recipe']
' returned non-zero exit status 128
BUILD START: clr--py27_0
    (actual version deferred until further download or env creation)
updating index in: C:\Python\Python27_32b\conda-bld\win-32
updating index in: C:\Python\Python27_32b\conda-bld\noarch

The following NEW packages will be INSTALLED:

    pip:            8.1.2-py27_0
    python:         2.7.12-0
    setuptools:     27.2.0-py27_1
    vs2008_runtime: 9.00.30729.1-2
    wheel:          0.29.0-py27_0

Cloning into bare repository 'C:\Python\Python27_32b\conda-bld\git_cache\C_\User
s\denis.akhiyarov\Downloads\pythonnet\pythonnet-clr-recipe'...
fatal: 'C:\Users\denis.akhiyarov\Downloads\pythonnet\pythonnet-clr-recipe' does
not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Cloning into bare repository 'C:\Python\Python27_32b\conda-bld\git_cache\C_\User
s\denis.akhiyarov\Downloads\pythonnet\pythonnet-clr-recipe'...
fatal: 'C:\Users\denis.akhiyarov\Downloads\pythonnet\pythonnet-clr-recipe' does
not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Warning: failed to download source.  If building, will try again after downloadi
ng recipe dependencies.
Error was:
Command '['C:\\Users\\denis.akhiyarov\\AppData\\Local\\Atlassian\\SourceTree\\gi
t_local\\bin\\git.exe', 'clone', '--mirror', 'C:\\Users\\denis.akhiyarov\\Downlo
ads\\pythonnet\\pythonnet-clr-recipe', 'C:\\Python\\Python27_32b\\conda-bld\\git
_cache\\C_\\Users\\denis.akhiyarov\\Downloads\\pythonnet\\pythonnet-clr-recipe']
' returned non-zero exit status 128
Traceback (most recent call last):
  File "C:\Python\Python27_32b\Scripts\conda-build-script.py", line 5, in <modul
e>
    sys.exit(conda_build.cli.main_build.main())
  File "C:\Python\Python27_32b\lib\site-packages\conda_build\cli\main_build.py",
 line 242, in main
    execute(sys.argv[1:])
  File "C:\Python\Python27_32b\lib\site-packages\conda_build\cli\main_build.py",
 line 234, in execute
    already_built=None, config=config)
  File "C:\Python\Python27_32b\lib\site-packages\conda_build\api.py", line 77, i
n build
    need_source_download=need_source_download, config=config)
  File "C:\Python\Python27_32b\lib\site-packages\conda_build\build.py", line 109
9, in build_tree
    config=recipe_config)
  File "C:\Python\Python27_32b\lib\site-packages\conda_build\build.py", line 667
, in build
    assert not need_source_download, "Source download failed.  Please investigat
e."
AssertionError: Source download failed.  Please investigate.