[Distutils] Issue with Setuptools package name

pavi ena potterpavi at gmail.com
Thu Aug 12 08:06:55 CEST 2010


Hello sir,

Please find the attached batch file out put, which i ran for the
installation.

The below commands are my windows batch file content

doskey clear=cls ls=dir
virtualenv --no-site-packages --clear .
type setup.py
Scripts\python.exe setup.py install -vvv
cd Scripts
ls -l

As per my setup.py after the installation console entry_points should
list/install in prefix\scripts, where as it is not installing the entry
points in a subdirectory called "Scripts" alongside the python executable.

But the same scenario is working fine in Linux platform all the entry_points
are listing\installing in prefix/bin subdirectory.

Thanks,
Praveen


On Wed, Aug 11, 2010 at 8:12 PM, P.J. Eby <pje at telecommunity.com> wrote:

> At 07:48 PM 8/11/2010 +0530, pavi ena wrote:
>
>> The above said scenario is working fine with Linux machine when i tried
>> the same usecase in windows machine, it is not working as expected.
>> Entry point console script is not listing/showing under "Scripts"
>> directory.
>>
>
> Where is it showing up?  Note that on Linux, the standard installation
> pattern is such that scripts are installed in prefix/bin -- i.e., alongside
> the python executable.  On Windows, however, the default installation
> location for scripts is in a subdirectory called "Scripts" alongside the
> python executable.
>
> Since you did a verbose install, the actual location of the script should
> be shown in the output from the command.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20100812/57e2be70/attachment-0001.html>
-------------- next part --------------

E:\praveen\temp_build\build_tools>doskey clear=cls ls=dir 

E:\praveen\temp_build\build_tools>virtualenv --no-site-packages --clear . 
Not deleting .\Scripts
New python executable in .\Scripts\python.exe
Installing setuptools................done.

E:\praveen\temp_build\build_tools>type setup.py 
from setuptools import setup, find_packages

setup(
    name='build_tool',
    version='0.1.0',
    install_requires=['pip==0.7.1', 
                      'virtualenv==1.4.9', 
                      'rdopts==0.1.3', 
                      'scripttest', 
                      'nose',
                      ],
    tests_require=['nose'],
    packages = find_packages(),
    entry_points = {
          'console_scripts': [
              'pybuild = build_tools.build:main',
              'pyfreeze = build_tools.freeze:main',
              'pydocs = build_tools.docs:main',
              ],
        },
)

E:\praveen\temp_build\build_tools>Scripts\python.exe setup.py install -vvv 
running install
running bdist_egg
running egg_info
creating build_tool.egg-info
writing requirements to build_tool.egg-info\requires.txt
writing build_tool.egg-info\PKG-INFO
writing top-level names to build_tool.egg-info\top_level.txt
writing dependency_links to build_tool.egg-info\dependency_links.txt
writing entry points to build_tool.egg-info\entry_points.txt
writing manifest file 'build_tool.egg-info\SOURCES.txt'
reading manifest file 'build_tool.egg-info\SOURCES.txt'
writing manifest file 'build_tool.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build
creating build\lib
creating build\lib\build_tools
copying build_tools\build.py -> build\lib\build_tools
copying build_tools\docs.py -> build\lib\build_tools
copying build_tools\freeze.py -> build\lib\build_tools
copying build_tools\__init__.py -> build\lib\build_tools
creating build\bdist.win32
creating build\bdist.win32\egg
creating build\bdist.win32\egg\build_tools
copying build\lib\build_tools\build.py -> build\bdist.win32\egg\build_tools
copying build\lib\build_tools\docs.py -> build\bdist.win32\egg\build_tools
copying build\lib\build_tools\freeze.py -> build\bdist.win32\egg\build_tools
copying build\lib\build_tools\__init__.py -> build\bdist.win32\egg\build_tools
byte-compiling build\bdist.win32\egg\build_tools\build.py to build.pyc
byte-compiling build\bdist.win32\egg\build_tools\docs.py to docs.pyc
byte-compiling build\bdist.win32\egg\build_tools\freeze.py to freeze.pyc
byte-compiling build\bdist.win32\egg\build_tools\__init__.py to __init__.pyc
creating build\bdist.win32\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist\build_tool-0.1.0.dev_12-py2.5.egg' and adding 'build\bdist.win32\egg' to it
removing 'build\bdist.win32\egg' (and everything under it)
Processing build_tool-0.1.0.dev_12-py2.5.egg
Copying build_tool-0.1.0.dev_12-py2.5.egg to e:\praveen\temp_build\build_tools\lib\site-packages
Adding build-tool 0.1.0.dev-12 to easy-install.pth file

Installed e:\praveen\temp_build\build_tools\lib\site-packages\build_tool-0.1.0.dev_12-py2.5.egg
Processing dependencies for build-tool==0.1.0.dev-12
Finished processing dependencies for build-tool==0.1.0.dev-12

E:\praveen\temp_build\build_tools>cd Scripts 

E:\praveen\temp_build\build_tools\Scripts>ls -l 
total 39
-rwxr-xr-x    1 pdoddama Administ      621 Aug 12 16:29 activate.bat
-rw-r--r--    1 pdoddama Administ     1003 Aug 12 16:29 activate_this.py
-rwxr-xr-x    1 pdoddama Administ      317 Aug 12 16:29 deactivate.bat
-rwxr-xr-x    1 pdoddama Administ      340 Aug 12 16:29 easy_install-2.5-script.py
-rwxr-xr-x    1 pdoddama Administ     7168 Aug 12 16:29 easy_install-2.5.exe
-rw-r--r--    1 pdoddama Administ      531 Aug 12 16:29 easy_install-2.5.exe.manifest
-rwxr-xr-x    1 pdoddama Administ      332 Aug 12 16:29 easy_install-script.py
-rwxr-xr-x    1 pdoddama Administ     7168 Aug 12 16:29 easy_install.exe
-rw-r--r--    1 pdoddama Administ      527 Aug 12 16:29 easy_install.exe.manifest
-rwxr-xr-x    1 pdoddama Administ      290 Aug 12 16:29 pip-script.py
-rwxr-xr-x    1 pdoddama Administ     7168 Aug 12 16:29 pip.exe
-rw-r--r--    1 pdoddama Administ      518 Aug 12 16:29 pip.exe.manifest
-rwxr-xr-x    1 pdoddama Administ    24064 Aug 12 16:29 python.exe
-rwxr-xr-x    1 pdoddama Administ    24576 Aug 12 16:29 pythonw.exe


More information about the Distutils-SIG mailing list