Skip to content

wordish setup.py doesn't install the docutils dependency #1

@wallrj

Description

@wallrj

I think the requires line should be replaced with install_requires

At least that worked for me.

(wordish)(master ✕ =)[~/projects/wordish]$ git diff
diff --git a/setup.py b/setup.py
index 7bb0493..5391b84 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ setup(
                    "commands compare the outputs"),

     license = 'GPL',
-    requires = [ 'docutils (>=0.5)' ],
+    install_requires = [ 'docutils >= 0.5' ],

     long_description = """
 Wordish is a script which executes a shell session parsed from a

[~]$ mkvirtualenv wordish
New python executable in wordish/bin/python
Installing setuptools, pip...done.
(wordish)[~]$ pip install wordish
Downloading/unpacking wordish
  Downloading wordish-1.0.2.tar.gz (53kB): 53kB downloaded
  Running setup.py (path:/home/richard/.virtualenvs/wordish/build/wordish/setup.py) egg_info for package wordish

    warning: no files found matching '*' under directory 'html/'
    warning: no files found matching '*' under directory 'examples/'
Installing collected packages: wordish
  Running setup.py install for wordish

    warning: no files found matching '*' under directory 'html/'
    warning: no files found matching '*' under directory 'examples/'
Successfully installed wordish
Cleaning up...
(wordish)[~]$ python -m wordish
Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/richard/.virtualenvs/wordish/lib/python2.7/site-packages/wordish.py", line 164, in <module>
    from docutils import core
ImportError: No module named docutils

BTW Thanks for wordish. Are you still maintaining it? We're experimenting to see if it can be used to test our tutorial:

So we may have a few more bugs and fixes to contribute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions