schmir / bbfreeze

UNMAINTAINED
http://pypi.python.org/pypi/bbfreeze/
92 stars 22 forks source link

bbfreeze not working with setuptools packages #29

Open graingert opened 10 years ago

graingert commented 10 years ago

I have a python setup.py

# setup.py
from setuptools import setup, find_packages

setup(
    name='print-workflow',
    version='0.1.0',
    author='Hogarth Worldwide',
    author_email='umbrella@hogarthww.com',
    packages=find_packages('src', exclude=('tests',)),
    package_dir={'': 'src'},
    include_package_data=True,
    install_requires=[
        'celery',
        'jinja2',
        'setuptools',
    ],
    license='PROPRIETARY',
    entry_points={
       'console_scripts': [
           'print_workflow = print_workflow:main',
       ]
    },  
)

and run:

python setup.py bdist_bbfreeze

then I get:

$ ./print-workflow-0.1.0/print_workflow
Traceback (most recent call last):
  File "<string>", line 6, in <module>
  File "__main__.py", line 128, in <module>
  File "__main__print_workflow__.py", line 9, in <module>
  File "pkg_resources.py", line 356, in load_entry_point
  File "pkg_resources.py", line 2438, in load_entry_point
ImportError: Entry point ('console_scripts', 'print_workflow') not found