Skip to content

Conversation

@fwalch
Copy link
Contributor

@fwalch fwalch commented May 22, 2015

Looks like I messed up the dependencies in #116 :-S

On my system, pycairo doesn't have an egg info, so there's no other way than to just remove the dependency from the setup.py?

Tested with pip2 install . --user --upgrade && ~/.local/bin/pynvim

@bfredl
Copy link
Member

bfredl commented May 22, 2015

I seem to can install pycairo via pip using
pip2 install --allow-external pycairo --allow-unverified pycairo pycairo
(yes three pycairo) but it doesn't reckognize the system installed version, as you said. Perhaps a bug with the arch package?

@fwalch
Copy link
Contributor Author

fwalch commented May 22, 2015

For me, that command fails with:

Collecting pycairo
  pycairo is potentially insecure and unverifiable.
  Downloading http://cairographics.org/releases/pycairo-1.10.0.tar.bz2 (246kB)
    100% |████████████████████████████████| 249kB 3.7MB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 18, in <module>
    IOError: [Errno 2] No such file or directory: '/tmp/pip-build-YCslZI/pycairo/setup.py'

    ----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-YCslZI/pycairo

@fwalch
Copy link
Contributor Author

fwalch commented May 22, 2015

I think the problem is with pycairo itself, at least I can't find any .egg-info for cairo or pycairo in /usr/lib/python2.7/dist-packages on Ubuntu as well.

For the above error: https://stackoverflow.com/questions/19127874/pip-install-fails-with-filenotfounderror-setup-py

pycairo is not built by setuptools, and therefore can't be installed by pip

@bfredl
Copy link
Member

bfredl commented May 22, 2015

Hmm, so it is not a well-formed pypi package. Since pygobject needs it at compile-time to support cairo, I'll guess most systems with python-gobject will have python-cairo anyway.

@fwalch
Copy link
Contributor Author

fwalch commented May 22, 2015

@bfredl So merge this? FWIW, before #116 there were dependencies on neither gobject nor cairo, so.. it's still a bit of an improvement.

Can we tag a new release after this? I don't like having the Arch packages at a version where the GUI doesn't work (especially because it's my fault). (cc @tarruda)

@tarruda
Copy link
Member

tarruda commented May 24, 2015

Can we tag a new release after this? I don't like having the Arch packages at a version where the GUI doesn't work (especially because it's my fault). (cc @tarruda)

👍

One question: does the extra_require key enforce these dependencies? They should be optional since the GUI is not required to use the python client.

@fwalch
Copy link
Contributor Author

fwalch commented May 24, 2015

These dependencies are only enforced once you invoke pynvim (because of [GUI] at https://github.com/neovim/python-client/pull/122/files#diff-2eeaed663bd0d25b7e608891384b7298R32), I believe.

@fwalch
Copy link
Contributor Author

fwalch commented May 26, 2015

Is this okay to merge?

@bfredl
Copy link
Member

bfredl commented May 26, 2015

LGTM 👍 (sorry, I didn't see you ask before)

fwalch added a commit that referenced this pull request May 26, 2015
@fwalch fwalch closed this May 26, 2015
@fwalch fwalch deleted the pynvim-fix-deps branch May 26, 2015 14:30
@fwalch
Copy link
Contributor Author

fwalch commented May 26, 2015

@tarruda I created a new release, hope that's okay.. can you upload it to PyPi?

@tarruda
Copy link
Member

tarruda commented May 27, 2015

@tarruda I created a new release, hope that's okay.. can you upload it to PyPi?

Done

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

Successfully merging this pull request may close these issues.

3 participants