Jump to content


Photo

Chap. 02 - Location Of Nester.pyc


  • Please log in to reply
No replies to this topic

#1 iSpikeyBoy

iSpikeyBoy

    New Member

  • Members
  • Pip
  • 4 posts

Posted 08 April 2011 - 08:08 PM

Already followed the instruction on building the distribution for nester.py. Then after I run that command "sudo python3 setup.py install", I get that result:

running install
running build
running build_py
running install_lib
copying build/lib.linux-i686-3.1/nester.py -> /usr/local/lib/python3.1/dist-packages
byte-compiling /usr/local/lib/python3.1/dist-packages/nester.py to nester.pyc
running install_egg_info
Writing /usr/local/lib/python3.1/dist-packages/nester-1.0.0.egg-info

On page 42 indicates that I will have "nester.pyc" in my "nester" folder where I stored the "setup.py" and "nester.py". But I'm puzzled that the "nester.pyc" is missing after the installation of "nester.py".

The following files and directories are created within "nester" folder:

nester
|
|__build
| |
| |__lib.linux-i686-3.1
| |
| |__nester.py
|
|__dist
| |
| |__nester-1.0.0.tar.gz
|
|__MANIFEST
|
|__nester.py
|
|__setup.py

The "nester.pyc" file is missing. So I searched for it thru a list of paths stored in the PYTHONPATH environment variable. And I've learned that the "nester.pyc" is stored in that directory - "/usr/local/lib/python3.1/dist-packages" along with "nester-1.0.0.egg-info" and "nester.py"

Can somebody explain to me why the "nester.pyc" is placed in that directory instead of "nester" directory?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users