Menu

#3 Put dependency on numpy into setup.py

accepted
None
5
2018-08-06
2018-08-04
Bewied
No

I just became the co-maintainer of the PyPI, because I'd like to see this package there. I was successful with it, but want to let you know of the workarounds I had to do, because I think this might also bother other people.

First, setup.py doesn't mention the dependency on numpy, which causes an annoying detour: install pygsl → see error → read logs → see dependency → install numpy → install pygsl.

Here's a patch:

--- a/setup.py
+++ b/setup.py
@@ -259,6 +256,7 @@
                    'gsl_wrappers': gsl_CodeGenerator.gsl_CodeGenerator,
                    #'build_sphinx': BuildDoc
                    },
+       install_requires = ['numpy'],
        command_options = {
            'build_sphinx': {
                'project': ('setup.py', proj_name),

Discussion

  • Pierre Schnizer

    Pierre Schnizer - 2018-08-06
    • status: open --> accepted
    • assigned_to: Pierre Schnizer
     
  • Pierre Schnizer

    Pierre Schnizer - 2018-08-06

    Will add be added

    Dear Ben,
    this setup script shows its history. It's origin is 2001 or so ...
    Thanks for the patch

    Sincerely yours
    Pierre

     

Log in to post a comment.