Jump to content


Jerle10

Member Since 28 Jun 2014
Offline Last Active Jun 28 2014 05:17 PM
-----

Posts I've Made

In Topic: Chapter 2 Page 41

28 June 2014 - 05:16 PM

I tried it this way and it worked

To create distribution file

At Command Prompt Window:
cd c:\Python34\nester
c:\Python34\nester>C:\Python34\python.exe setup.py sdist





Copied from command window

Microsoft Windows [Version 6.1.7601]
Copyright © 2009 Microsoft Corporation. All rights reserved.

c:\Python34\nester>C:\Python34\python.exe setup.py sdist
running sdist
running check
warning: sdist: manifest template 'MANIFEST.in' does not exist (using default fi
le list)

warning: sdist: standard file not found: should have one of README, README.txt

writing manifest file 'MANIFEST'
creating nester-1.0.0
making hard links in nester-1.0.0...
hard linking nester.py -> nester-1.0.0
hard linking setup.py -> nester-1.0.0
creating dist
creating 'dist\nester-1.0.0.zip' and adding 'nester-1.0.0' to it
adding 'nester-1.0.0\nester.py'
adding 'nester-1.0.0\PKG-INFO'
adding 'nester-1.0.0\setup.py'
removing 'nester-1.0.0' (and everything under it)

c:\Python34\nester>








Install distribution into local copy of Python
While still in the command window enter:

C:\Python34\python.exe setup.py install

Copied from command window
c:\Python34\nester>C:\Python34\python.exe setup.py install
running install
running build
running build_py
creating build
creating build\lib
copying nester.py -> build\lib
running install_lib
copying build\lib\nester.py -> C:\Python34\Lib\site-packages
byte-compiling C:\Python34\Lib\site-packages\nester.py to nester.cpython-34.pyc
running install_egg_info
Writing C:\Python34\Lib\site-packages\nester-1.0.0-py3.4.egg-info

c:\Python34\nester

In Topic: Building Distribution File

28 June 2014 - 04:22 PM

The book is great but having trouble with making the distribution file ( using Python 3.4.1)
I have tried multiple ways and still can not figure it out. Can anyone help please?

C:\Users\Tim>c:\Python34\nester setup.py sdist
'c:\Python34\nester' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Tim>c:\\Python34\python.exe setup.py sdist
c:\\Python34\python.exe: can't open file 'setup.py': [Errno 2] No such file or d
irectory

C:\Users\Tim>$ python34 setup.py sdist
'$' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Tim>C:\Python34 setup.py sdist
'C:\Python34' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Tim>C:\Python34\nester setup.py sdist
'C:\Python34\nester' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Tim>c:\Python34\nester setup.py sdist
'c:\Python34\nester' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Tim>c:\\Python34\python.exe setup.py sdist
c:\\Python34\python.exe: can't open file 'setup.py': [Errno 2] No such file or d
irectory

C:\Users\Tim>$ python34 setup.py sdist
'$' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Tim>C:\Python34 setup.py sdist
'C:\Python34' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\Tim>C:\Python34\nester setup.py sdist
'C:\Python34\nester' is not recognized as an internal or external command,
operable program or batch file.