Skip to content

Don't use six.PY2 in setup.py#459

Merged
lukebakken merged 1 commit into
basho:masterfrom
daroot:setup-cant-import-six
May 3, 2016
Merged

Don't use six.PY2 in setup.py#459
lukebakken merged 1 commit into
basho:masterfrom
daroot:setup-cant-import-six

Conversation

@daroot
Copy link
Copy Markdown

@daroot daroot commented May 3, 2016

six is not guaranteed to be installed before running pip/setuptools.
The client fails to install on a machine or fresh virtualenv
without six with errors like the following:

; virtualenv ve
; ./ve/bin/pip install riak
Collecting riak
  Downloading riak-2.5.0.tar.gz (193kB)
    100% |████████████████████████████████| 196kB 9.2MB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-ReAmHf/riak/setup.py", line 4, in <module>
        import six
    ImportError: No module named six

This snuck past tox testing, because six is listed as an explict
dependency in tox.ini.

I tried testing the changes locally, but ran into another six related problem in basho-erlastic, which I filed an issue for. basho/python-erlastic#2

six is not guaranteed to be installed before running pip/setuptools.
The client fails to install on a machine or fresh virtualenv
without six with errors like the following:

```
; virtualenv ve
; ./ve/bin/pip install riak
Collecting riak
  Downloading riak-2.5.0.tar.gz (193kB)
    100% |████████████████████████████████| 196kB 9.2MB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-ReAmHf/riak/setup.py", line 4, in <module>
        import six
    ImportError: No module named six
```

This snuck past tox testing, because six is listed as an explict
dependency in tox.ini.
@lukebakken lukebakken merged commit 9f4a471 into basho:master May 3, 2016
@lukebakken
Copy link
Copy Markdown
Contributor

@daroot thanks. I am facepalming.

@daroot daroot deleted the setup-cant-import-six branch May 3, 2016 04:11
@lukebakken
Copy link
Copy Markdown
Contributor

lukebakken commented May 3, 2016

#460 (CLIENTS-836) filed to prevent this from happening in the future.

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.

2 participants