Jump to content


Photo

Building Distribution File


  • Please log in to reply
3 replies to this topic

#1 subinalex

subinalex

    New Member

  • Members
  • Pip
  • 8 posts

Posted 18 March 2014 - 03:06 AM

Hi guys,

After building and installing setup.py ,i am unable to see the nester.pyc in the 'Nester' folder.
Can anyone explain why is it so?

i am using Python 3.3,is it because of the version .


Thanks,
Subin

Edited by subinalex, 18 March 2014 - 03:08 AM.


#2 paulbarry

paulbarry

    Advanced Member

  • O'Reilly Author
  • PipPipPipPipPipPipPipPip
  • 307 posts

Posted 18 March 2014 - 05:18 AM

Yes... the Python folk changed how things work with later versions of Python 3. The .PYC files used to be put in the same folder as your code, but now they are stored in a folder called __pycache__ (at least they are on my Mac). For the purposes of creating the distribution, it shouldn't matter where these files are, so you can not worry about them. :-)

--Paul.

#3 subinalex

subinalex

    New Member

  • Members
  • Pip
  • 8 posts

Posted 27 March 2014 - 11:41 PM

Thank you paul.....:)

#4 Jerle10

Jerle10

    New Member

  • Members
  • Pip
  • 2 posts

Posted 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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users