inveniosoftware-attic / invenio-ext

Invenio module that provides integration with Flask extensions.
GNU General Public License v2.0
0 stars 12 forks source link

remove mysql from direct dependencies #28

Closed eamonnmag closed 8 years ago

eamonnmag commented 8 years ago

If the db is up to the app developer, then including mysql-python as a dependency is a problem since for the build to be successful, mysql needs to be installed on the machine, otherwise you'll get this error.

Collecting MySQL-python>=1.2.5 (from invenio-ext>=0.1.0->invenio-access->hepdata==2.0.0.dev20150000)
  Using cached MySQL-python-1.2.5.zip
    Complete output from command python setup.py egg_info:
    sh: mysql_config: command not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-GSqXWu/MySQL-python/setup.py", line 17, in <module>
        metadata, options = get_config()
      File "/tmp/pip-build-GSqXWu/MySQL-python/setup_posix.py", line 43, in get_config
        libs = mysql_config("libs_r")
      File "/tmp/pip-build-GSqXWu/MySQL-python/setup_posix.py", line 25, in mysql_config
        raise EnvironmentError("%s not found" % (mysql_config.path,))
    EnvironmentError: mysql_config not found
lnielsen commented 8 years ago

I think you are installing invenio-access without --pre . Invenio-Ext is deprecated and not used by Invenio 3

eamonnmag commented 8 years ago

Ok, great. Didn't realise!