Unable to install locally built python package

Walter

I recently noticed that I am unable to install my own Python packages. I was getting an error that indicated that a package containing Python modules was invalid. So, I updated my setup.py and removed some elements, this is what I have now:

from setuptools import setup

setup(
    name='project',
    version='0.3.0',
    packages=['project'],
    license='GPL',
    #zip_safe=False,
    #include_package_data=True,
    #package_data = { 'package': [ 'README.txt', '*.py' ] },

    install_requires=[
        'PyYAML >= 3.11',
        'logger >= 0.2.0',
    ],
    entry_points={
        'console_scripts': ['project = project:main']
    },
)

I removed some elements and called the project project. Essentially, within project, I had a package, libraries, with some Python modules. Prior to removing these lines:

#zip_safe=False,
        #include_package_data=True,
        #package_data = { 'package': [ 'README.txt', '*.py' ] },

... it was not working recently.

Oddly enough though, this setup.py was working as far as I could tell up until a month ago. That said, after commenting those items out and running python setup.py build, I no longer get the error about the package being invalid, but at the same token, I see that nothing gets installed when running pip install dist/project-0.0.1.tar.gz. Inside the file, built by python setup.py sdist, I do see all the files that I would expect to see. They just don't get installed, so I'm effectively missing all of the packages underneath the root folder (which is everything except init).

What am I missing here?

Walter

EDIT: The solution was:

packages=find_packages(),

The hackish solution for me was to do this:

packages=['project', 'project/libraries', 'project/system', 'project/services'],

For whatever reason, packages was no longer working recursively.

As soon as I did that, voila, it worked. I'll probably circle back to this later as I'm curious what changed.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Install Python package locally

From Dev

Unable to Install Python Package

From Dev

Install package locally

From Dev

Install NodeJS package locally

From Dev

Unable to install locally-built eclipse plugin, get "Error reading signed content"

From Dev

How to install package locally in bower?

From Dev

Python, unable to install package, Mac OS X

From Dev

unable to install rvest package

From Dev

Unable to install the package "email"

From Dev

Unable to install package car

From Dev

PyCluster unable to install package

From Dev

Unable to install RMySQL package

From Dev

PyCluster unable to install package

From Dev

Unable to install sasquatch package

From Dev

Unable to install R package

From Dev

Install a locally developed npm package globally

From Dev

Put dotNet Install Package Locally with WPF Program

From Dev

How to install a pip package locally in Dockerfile?

From Dev

Unable to locally update or install mongojs module for NodeJS

From Dev

Unable to install sasl-0.1.3 python package on windows machine

From Dev

Unable to downgrade version of Python package by `pip install -I`

From Dev

Unable to install package python-httplib2 in Kali Linux

From Dev

Unable to start locally-built ntpd from system service script

From Dev

npm install package in absolute path (Locally and package.json)

From Dev

Unable to npm install my package

From Dev

Unable to install package optim in Octave

From Dev

Unable to install cachem package for R

From Dev

14.04 Unable to install correct package

From Dev

Julia - unable to install Dates package