Skip to content

pyBigWig does not install through install_requires for python package #80

Closed
@msbentsen

Description

@msbentsen

Hi,

I want to set pyBigWig as an installation dependency for my own python package using install_requires in setup.py, but I am having trouble during the installation procedure.

My minimal setup.py looks like this:

from setuptools import setup
setup(name='mypackage',
      install_requires=["pyBigWig"])

Upon python setup.py install I get the following messages/errors:

Processing dependencies for mypackage==0.0.0
Searching for pyBigWig
Reading https://pypi.org/simple/pyBigWig/
Downloading https://files.pythonhosted.org/packages/5c/9c/2e01d04b6fd31c1e09537c8f51410123c087da4974bdb0fcdb7ec25dab62/pyBigWig-0.3.13.tar.gz#sha256=c65cb9ccd78a4ede00c3209579173e4f7e67598daf6dc079676a0e8982163f5b
Best match: pyBigWig 0.3.13
Processing pyBigWig-0.3.13.tar.gz
Writing /tmp/easy_install-swqddsi0/pyBigWig-0.3.13/setup.cfg
Running pyBigWig-0.3.13/setup.py -q bdist_egg --dist-dir /tmp/easy_install-swqddsi0/pyBigWig-0.3.13/egg-dist-tmp-r3gwo7hc
/home/mbentse/.conda/envs/mypackage_env/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'classifier'
  warnings.warn(msg)
zip_safe flag not set; analyzing archive contents...
__pycache__.pyBigWig.cpython-37: module references __file__
pyBigWigTest.__pycache__.test.cpython-37: module references __file__
No eggs found in /tmp/easy_install-swqddsi0/pyBigWig-0.3.13/egg-dist-tmp-r3gwo7hc (setup script problem?)
error: The 'pyBigWig' distribution was not found and is required by mypackage

Strangely pip install pybigwig works, but I would love for it to recognize the package automatically so that I don't have to handle the exception when importing pybigwig later on.

Hope you can help out with a solution!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions