Note that there are some explanatory texts on larger screens.

plurals
  1. POsetuptools: file dynamic_dynamodb.py (for module dynamic_dynamodb) not found
    primarykey
    data
    text
    <p>I'm trying to build my fairly simple Python project so that:</p> <ul> <li>A system wide command <code>dynamic-dynamodb</code> is installed</li> <li>That command points to <code>dynamic_dynamodb.main:main</code></li> </ul> <p>My project looks like this:</p> <pre><code>. ├── LICENSE ├── MANIFEST.in ├── Makefile ├── README -&gt; README.md ├── README.md ├── dynamic_dynamodb │   ├── __init__.py │   ├── dynamic_dynamodb.py │   └── main.py ├── example-dynamic-dynamodb.conf ├── requirements.txt └── setup.py </code></pre> <p>I got it to work fine when I just had one Python file in the root folder. But when the project grew I had to split the code and put it into a module (i.e. the folder <code>dynamic_dynamodb</code>). Now my <code>setup.py</code> looks like this:</p> <pre><code>""" Setup script for PyPI """ from setuptools import setup, find_packages setup(name='dynamic-dynamodb', version='0.3.0-SNAPSHOT', license='Apache License, Version 2.0', description='Automatic provisioning for AWS DynamoDB tables', author='Sebastian Dahlgren', author_email='sebastian.dahlgren@gmail.com', url='http://sebdah.github.com/dynamic-dynamodb/', keywords="dynamodb aws provisioning amazon web services", platforms=['Any'], py_modules=['dynamic_dynamodb'], packages=find_packages('dynamic_dynamodb'), include_package_data=True, zip_safe=False, install_requires=[ 'boto &gt;= 2.6.0' ], classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', 'Programming Language :: Python' ], entry_points={ 'console_scripts': [ 'dynamic-dynamodb = dynamic_dynamodb.main:main', ] } ) </code></pre> <p>The problem is that when I build with <code>python setup.py sdist</code> I see the following error:</p> <pre><code>file dynamic_dynamodb.py (for module dynamic_dynamodb) not found </code></pre> <p>Does anyone have any pointers to kick me in the right direction?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload