collective / sphinxcontrib-httpexample

Adds example directive for sphinx-contrib httpdomain
23 stars 20 forks source link

Make/nix doesn't work on osx #16

Closed jaroel closed 6 years ago

jaroel commented 7 years ago

I get this message:

make
nix-build release.nix -A build.x86_64-linux.python3
downloading ‘https://github.com/nixos/nixpkgs-channels/archive/nixos-16.09.tar.gz’... [0/0 KiB, 0.0 KiB/s]
warning: dumping very large path (> 256 MiB); this may run out of memory
these derivations will be built:
  /nix/store/0qy3vr0nzr89n8p44j2chmqwqbgmd9if-python3.5-reportlab-3.2.0.drv
  /nix/store/1pc6sddnim3pi6cn0hg9f8j77gfc6zav-python3.5-sphinx-testing-0.7.1.drv
  /nix/store/6xvq6a8ylbqy3k82xlp6xnvagjisliil-astunparse-1.5.0.tar.gz.drv
  /nix/store/fs641f0nfkxvxp3pyjp6cawcyixrykdk-python3.5-future-0.15.2.drv
  /nix/store/fxlvz9b43mn4h8b5pw110k3m0cjpgqp4-0.93.tar.gz.drv
  /nix/store/llzqiwj9397vxbm13jjzyvarm8y1h735-pdfrw-0.3.tar.gz.drv
  /nix/store/wr2ll2abnwwhli32xififdc2jfdv8gl4-python3.5-pdfrw-0.3.drv
  /nix/store/fgzxvygm1yxziy5m7x791ajx1bgf33wa-python3.5-rst2pdf-0.93.drv
  /nix/store/ppgm2ms15q2mnfjvx7xp15zpq05659b8-sphinxcontrib-httpdomain-1.3.0.tar.gz.drv
  /nix/store/i7pwamq331wl9xmr92lh9wdz7pal8l0k-python3.5-sphinxcontrib-httpdomain-1.3.0.drv
  /nix/store/kihiw33s1bgplpw3zllg47z3di1k22ax-python3.5-astunparse-1.5.0.drv
  /nix/store/myn82da5rrr8sqia2vrj4fmyvzbwczss-python3.5-zc.buildout-nix-2.5.0.drv
  /nix/store/ncjlpg6cpylwiv2mjmmyv3janmh43wsc-python3.5-coveralls-1.1.drv
  /nix/store/zfx6gwhcn6xylbjjs157a8balqk84n0q-python3.5-check-manifest.drv
  /nix/store/qqqkqpfgj93c9962lv5d9h1ljnfx11ih-sphinxcontrib-httpexample-0.5.3.dev0.drv
building path(s) ‘/nix/store/9ghs3ljpxdip8wjf2mh8dbdgv1vd59iq-python3.5-check-manifest’
error: a ‘x86_64-linux’ is required to build ‘/nix/store/zfx6gwhcn6xylbjjs157a8balqk84n0q-python3.5-check-manifest.drv’, but I am a ‘x86_64-darwin’
make: *** [test] Error 1
jaroel commented 7 years ago

As a workaround I used this tox.ini:

[tox]
envlist = py27, p3

[testenv]
deps =
    -rrequirements.txt
    sphinx-testing
    pytest
commands=py.test

[pytest]
testpaths = tests
datakurre commented 7 years ago

Could you update tox.ini in repo with that? Having that should not hurt anyone. Nixpkgs has still issues with Python (because of Python packaging) and probably even more on darwin.

On 11. toukokuuta 2017 klo 10.31 +0300, Roel Bruggink notifications@github.com, wrote:

As a workaround I used this tox.ini:

[tox] envlist = py27, p3 [testenv] deps = -rrequirements.txt sphinx-testing pytest commands=py.test [pytest] testpaths = tests

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub (https://github.com/collective/sphinxcontrib-httpexample/issues/16#issuecomment-300706809), or mute the thread (https://github.com/notifications/unsubscribe-auth/AAJyvx_1621PZxdSxncOknhk-BYLEZySks5r4rlHgaJpZM4NXnVr).

jaroel commented 7 years ago

done

datakurre commented 6 years ago

make should now work in virtualenv created from requirements.txt, nix stuff is moved to Makefile.nix (yet it should also work on OSX now; Nix on OSX is better nowadays – unless on High Sierra...).