Hi everybody,

I posted this question at http://stackoverflow.com/questions/13271085/console-scripts-entry-point-ignored without getting response, so I turn to the ML.

I am using setuptools 0.6c11 under Windows (64bit, mingw64).

I have a trouble with setup.py - I use entry_points={'console_scripts':['woo = wooMain.main']}, which works fine under Linux, but creates no scripts at all under Windows (64bit, using mingw64). Curiously, some other packages, which also use console_scripts (ipython, for instance), do get their .exe's created just fine.

The relevant part of setup.py is below. I attach "setup.py install" log, in case it is informative. Curiously, it says "writing entry points to core/main\woo.egg-info\entry_points.txt", but this file does not even get installed with the egg.

Coud you suggest a way to debug that (such as running setup.py more verbose)? Or suggest a package with very simple setup.py which also uses console_scripts and actually works --

Cheers, Vaclav

from setuptools import setup

wooModules=['woo.'+basename(py)[:-3] for py in glob('py/*.py') if basename(py)!='__init__.py']
execFlavor=''

setup(name='woo',
    version=version,
package_dir={'woo':'py','':'core/main','woo.qt':'gui/qt4','woo.pre':'pkg/pre','woo.gts':'py/3rd-party/pygts-0.3.1'},
    packages=(
        ['woo','woo._monkey','woo.tests','woo.pre']
        +(['woo.qt'] if 'qt4' in features else [])
        +(['woo.gts'] if 'gts' in features else [])
    ),
    py_modules=wooModules+['wooOptions','wooMain'],
    ext_modules=[
        Extension('woo.'+cxxInternalModule,
            sources=cxxSrcs,
            include_dirs=cppDirs,
            define_macros=cppDef,
            extra_compile_args=cxxFlags,
            libraries=cxxLibs,
            library_dirs=libDirs,
            extra_link_args=linkFlags,
        ),
    ],
# ignored under windows? http://stackoverflow.com/questions/13271085/console-scripts-entry-point-ignored
    entry_points={
        'console_scripts':[
            'woo%s = wooMain:main'%execFlavor,
            'woo%s-batch = wooMain:batch'%execFlavor,
        ],
    },
    zip_safe=False,
)



running install
running bdist_egg
running egg_info
writing core/main\woo.egg-info\PKG-INFO
writing top-level names to core/main\woo.egg-info\top_level.txt
writing dependency_links to core/main\woo.egg-info\dependency_links.txt
writing entry points to core/main\woo.egg-info\entry_points.txt
reading manifest file 'core/main\woo.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'core/main\woo.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
copying gui\qt4\img_rc.py -> build\lib.win-amd64-2.7\woo\qt
copying gui\qt4\ui_controller.py -> build\lib.win-amd64-2.7\woo\qt
running build_ext
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\batch.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\bodiesHandling.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\cld.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\core.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\document.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\eudoxos.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\export.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\geom.py -> build\bdist.win-amd64\egg\woo
creating build\bdist.win-amd64\egg\woo\gts
copying build\lib.win-amd64-2.7\woo\gts\pygts.py -> build\bdist.win-amd64\egg\woo\gts
copying build\lib.win-amd64-2.7\woo\gts\__init__.py -> build\bdist.win-amd64\egg\woo\gts
copying build\lib.win-amd64-2.7\woo\linterpolation.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\manpage.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\pack.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\params.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\plot.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\post2d.py -> build\bdist.win-amd64\egg\woo
creating build\bdist.win-amd64\egg\woo\pre
copying build\lib.win-amd64-2.7\woo\pre\BinSeg_.py -> build\bdist.win-amd64\egg\woo\pre
copying build\lib.win-amd64-2.7\woo\pre\Roro_.py -> build\bdist.win-amd64\egg\woo\pre
copying build\lib.win-amd64-2.7\woo\pre\__init__.py -> build\bdist.win-amd64\egg\woo\pre
creating build\bdist.win-amd64\egg\woo\qt
copying build\lib.win-amd64-2.7\woo\qt\ExceptionDialog.py -> build\bdist.win-amd64\egg\woo\qt
copying build\lib.win-amd64-2.7\woo\qt\img_rc.py -> build\bdist.win-amd64\egg\woo\qt
copying build\lib.win-amd64-2.7\woo\qt\Inspector.py -> build\bdist.win-amd64\egg\woo\qt
copying build\lib.win-amd64-2.7\woo\qt\SerializableEditor.py -> build\bdist.win-amd64\egg\woo\qt
copying build\lib.win-amd64-2.7\woo\qt\ui_controller.py -> build\bdist.win-amd64\egg\woo\qt
copying build\lib.win-amd64-2.7\woo\qt\__init__.py -> build\bdist.win-amd64\egg\woo\qt
copying build\lib.win-amd64-2.7\woo\remote.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\runtime.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\sparc.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\system.py -> build\bdist.win-amd64\egg\woo
creating build\bdist.win-amd64\egg\woo\tests
copying build\lib.win-amd64-2.7\woo\tests\clump.py -> build\bdist.win-amd64\egg\woo\tests
copying build\lib.win-amd64-2.7\woo\tests\core.py -> build\bdist.win-amd64\egg\woo\tests
copying build\lib.win-amd64-2.7\woo\tests\io.py -> build\bdist.win-amd64\egg\woo\tests
copying build\lib.win-amd64-2.7\woo\tests\pbc.py -> build\bdist.win-amd64\egg\woo\tests
copying build\lib.win-amd64-2.7\woo\tests\psd.py -> build\bdist.win-amd64\egg\woo\tests
copying build\lib.win-amd64-2.7\woo\tests\__init__.py -> build\bdist.win-amd64\egg\woo\tests
copying build\lib.win-amd64-2.7\woo\timing.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\utils.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\ymport.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\_aliases.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\_cxxInternal.pyd -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\_extraDocs.py -> build\bdist.win-amd64\egg\woo
creating build\bdist.win-amd64\egg\woo\_monkey
copying build\lib.win-amd64-2.7\woo\_monkey\io.py -> build\bdist.win-amd64\egg\woo\_monkey
copying build\lib.win-amd64-2.7\woo\_monkey\__init__.py -> build\bdist.win-amd64\egg\woo\_monkey
copying build\lib.win-amd64-2.7\woo\_units.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\woo\__init__.py -> build\bdist.win-amd64\egg\woo
copying build\lib.win-amd64-2.7\wooMain.py -> build\bdist.win-amd64\egg
copying build\lib.win-amd64-2.7\wooOptions.py -> build\bdist.win-amd64\egg
byte-compiling build\bdist.win-amd64\egg\woo\batch.py to batch.pyc
byte-compiling build\bdist.win-amd64\egg\woo\bodiesHandling.py to bodiesHandling.pyc
byte-compiling build\bdist.win-amd64\egg\woo\cld.py to cld.pyc
byte-compiling build\bdist.win-amd64\egg\woo\core.py to core.pyc
byte-compiling build\bdist.win-amd64\egg\woo\document.py to document.pyc
byte-compiling build\bdist.win-amd64\egg\woo\eudoxos.py to eudoxos.pyc
byte-compiling build\bdist.win-amd64\egg\woo\export.py to export.pyc
byte-compiling build\bdist.win-amd64\egg\woo\geom.py to geom.pyc
byte-compiling build\bdist.win-amd64\egg\woo\gts\pygts.py to pygts.pyc
byte-compiling build\bdist.win-amd64\egg\woo\gts\__init__.py to __init__.pyc
byte-compiling build\bdist.win-amd64\egg\woo\linterpolation.py to linterpolation.pyc
byte-compiling build\bdist.win-amd64\egg\woo\manpage.py to manpage.pyc
byte-compiling build\bdist.win-amd64\egg\woo\pack.py to pack.pyc
byte-compiling build\bdist.win-amd64\egg\woo\params.py to params.pyc
byte-compiling build\bdist.win-amd64\egg\woo\plot.py to plot.pyc
byte-compiling build\bdist.win-amd64\egg\woo\post2d.py to post2d.pyc
byte-compiling build\bdist.win-amd64\egg\woo\pre\BinSeg_.py to BinSeg_.pyc
byte-compiling build\bdist.win-amd64\egg\woo\pre\Roro_.py to Roro_.pyc
byte-compiling build\bdist.win-amd64\egg\woo\pre\__init__.py to __init__.pyc
byte-compiling build\bdist.win-amd64\egg\woo\qt\ExceptionDialog.py to ExceptionDialog.pyc
byte-compiling build\bdist.win-amd64\egg\woo\qt\img_rc.py to img_rc.pyc
byte-compiling build\bdist.win-amd64\egg\woo\qt\Inspector.py to Inspector.pyc
byte-compiling build\bdist.win-amd64\egg\woo\qt\SerializableEditor.py to SerializableEditor.pyc
byte-compiling build\bdist.win-amd64\egg\woo\qt\ui_controller.py to ui_controller.pyc
byte-compiling build\bdist.win-amd64\egg\woo\qt\__init__.py to __init__.pyc
byte-compiling build\bdist.win-amd64\egg\woo\remote.py to remote.pyc
byte-compiling build\bdist.win-amd64\egg\woo\runtime.py to runtime.pyc
byte-compiling build\bdist.win-amd64\egg\woo\sparc.py to sparc.pyc
byte-compiling build\bdist.win-amd64\egg\woo\system.py to system.pyc
byte-compiling build\bdist.win-amd64\egg\woo\tests\clump.py to clump.pyc
byte-compiling build\bdist.win-amd64\egg\woo\tests\core.py to core.pyc
byte-compiling build\bdist.win-amd64\egg\woo\tests\io.py to io.pyc
byte-compiling build\bdist.win-amd64\egg\woo\tests\pbc.py to pbc.pyc
byte-compiling build\bdist.win-amd64\egg\woo\tests\psd.py to psd.pyc
byte-compiling build\bdist.win-amd64\egg\woo\tests\__init__.py to __init__.pyc
byte-compiling build\bdist.win-amd64\egg\woo\timing.py to timing.pyc
byte-compiling build\bdist.win-amd64\egg\woo\utils.py to utils.pyc
byte-compiling build\bdist.win-amd64\egg\woo\ymport.py to ymport.pyc
byte-compiling build\bdist.win-amd64\egg\woo\_aliases.py to _aliases.pyc
byte-compiling build\bdist.win-amd64\egg\woo\_extraDocs.py to _extraDocs.pyc
byte-compiling build\bdist.win-amd64\egg\woo\_monkey\io.py to io.pyc
byte-compiling build\bdist.win-amd64\egg\woo\_monkey\__init__.py to __init__.pyc
byte-compiling build\bdist.win-amd64\egg\woo\_units.py to _units.pyc
byte-compiling build\bdist.win-amd64\egg\woo\__init__.py to __init__.pyc
byte-compiling build\bdist.win-amd64\egg\wooMain.py to wooMain.pyc
byte-compiling build\bdist.win-amd64\egg\wooOptions.py to wooOptions.pyc
creating stub loader for woo\_cxxInternal.pyd
byte-compiling build\bdist.win-amd64\egg\woo\_cxxInternal.py to _cxxInternal.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
writing build\bdist.win-amd64\egg\EGG-INFO\native_libs.txt
creating 'dist\woo-0.99_rna-py2.7-win-amd64.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing woo-0.99_rna-py2.7-win-amd64.egg
removing 'c:\python27\lib\site-packages\woo-0.99_rna-py2.7-win-amd64.egg' (and everything under it)
creating c:\python27\lib\site-packages\woo-0.99_rna-py2.7-win-amd64.egg
Extracting woo-0.99_rna-py2.7-win-amd64.egg to c:\python27\lib\site-packages
woo 0.99-rna is already the active version in easy-install.pth

Installed c:\python27\lib\site-packages\woo-0.99_rna-py2.7-win-amd64.egg
Processing dependencies for woo==0.99-rna
Finished processing dependencies for woo==0.99-rna
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to