IBM / nzalchemy

Netezza database dialect for SQLAlchemy
Apache License 2.0
3 stars 7 forks source link

Installing from source throws error #4

Open joebeeson opened 3 years ago

joebeeson commented 3 years ago

https://github.com/IBM/nzalchemy/blob/1efd5dabd9fca116cf507ab5eb59e39ebe81b440/sqlalchemy-netezza/setup.py#L19

Collecting nzalchemy
  Downloading https://CACHE/nzalchemy-11.0.0.tar.gz (26 kB)

Pip subprocess error:
/env/lib/python3.9/site-packages/pip/_internal/req/req_file.py:200: UserWarning: Disabling all use of wheels due to the use of --build-option / --global-option / --install-option.
  cmdoptions.check_install_build_global(options, line.opts)
    ERROR: Command errored out with exit status 1:
     command: /env/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-toril2v4/nzalchemy_f8be430ab67e476f83c5b238a175abe7/setup.py'"'"'; __file__='"'"'/tmp/pip-install-toril2v4/nzalchemy_f8be430ab67e476f83c5b238a175abe7/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-n3rnejgk
         cwd: /tmp/pip-install-toril2v4/nzalchemy_f8be430ab67e476f83c5b238a175abe7/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-toril2v4/nzalchemy_f8be430ab67e476f83c5b238a175abe7/setup.py", line 19, in <module>
        long_description=open(readme).read(),
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-toril2v4/nzalchemy_f8be430ab67e476f83c5b238a175abe7/../README.md'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Since the file isn't included in source distributions setup.py fails when installing from source.