Differences between revisions 2 and 21 (spanning 19 versions)
Revision 2 as of 2006-08-30 19:35:59
Size: 1600
Editor: nc5-rba-2
Comment:
Revision 21 as of 2014-05-06 15:19:52
Size: 762
Editor: 69
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Introduction to distutils =
I have recently used distutils for the first time and it took me quite some time to get it working for me. I won't pretend I understand all of it, there is much mystery still!
Line 4: Line 2:
This is a tutorial to take those new to distutils from a development project through to a setup.py of the project.
Line 6: Line 3:
'''Please note:''' ''I am not a pro. All this is based on my own hacking and struggling to get things to work. I am sure there will be alternative ways to do things and that I will make mistakes. Caveat Emptor.''

(Based on Gnu/Linux)

== The layout of files and folders ==
A proper layout of your files and folders can really save you trouble later on. I use this layout:
{{{
.
|-- package
| |-- __init__.py
| |-- module.py
| `-- things
| |-- cross.png
| |-- fplogo.png
| `-- tick.png
|-- runner
|-- MANIFEST
|-- MANIFEST.in
|-- README
`-- setup.py
}}}
* The very top of the tree is some arbitrary folder, perhaps in your home directory under pythondev. It doesn't matter.
* package - Is a folder. I call it this to indicate that it will be where you keep your Python packages.
 ''(Packages are simply folders with modules (py files) in them. They also have a special file called __init__.py so that Python will know that this folder is a package.)''
* package/things - Is a folder. This is where I will keep all my things. Here I have some image files, but you can put anything your module may need here. Naturally you can use any folder name you like.
* The other files are all in the root and will be described soon.
 http://media2.picsearch.com/is?NtYwIXz54M0gd2y9NSf2SKutabqkOC4cCDIgEJFpjoY&height=223 I'm a 40 years old, married and work at the college (Environmental Studies).<<BR>>
In my free time I learn Russian. I have been twicethere and look forward to go there sometime in the future. I love to [[http://ballardwnnz.blogs.experienceproject.com/3164502.html|Beyonce Liquid Diet]] read, preferably on my beloved Kindle. I really love to watch Supernatural and Doctor Who as well as documentaries about nature. I enjoy Paintball.<<BR>>
<<BR>>
my website :: [[http://adolphzugn.newsvine.com/_news/2014/04/21/23565853-while-many-of-the-other-shake-liquid-diet-plans-come-in-vanilla-chocolate-or-strawberry-the-hollywood-diet-is-a-fruit-shake|healthy liquid diet]]

In my free time I learn Russian. I have been twicethere and look forward to go there sometime in the future. I love to Beyonce Liquid Diet read, preferably on my beloved Kindle. I really love to watch Supernatural and Doctor Who as well as documentaries about nature. I enjoy Paintball.

my website :: healthy liquid diet

Distutils/Tutorial (last edited 2016-08-31 21:42:42 by GeneWood)

Unable to edit the page? See the FrontPage for instructions.