Changes between Initial Version and Version 1 of Software/ConfigManagement/CreatingSrcDistsAndEggs


Ignore:
Timestamp:
26/01/11 10:18:54 (11 years ago)
Author:
astephen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Software/ConfigManagement/CreatingSrcDistsAndEggs

    v1 v1  
     1= Creating Source Distributions and Eggs = 
     2 
     3[[PageOutline]] 
     4 
     5== Introduction == 
     6 
     7This page follows on from the [wiki:Software/ConfigManagement/SubversionBranchMngmt Subversion Branch Management and Managing Python Distributions] page. 
     8 
     9=== Create A Source Distribution And Egg From The Tagged Version === 
     10 
     11The only thing left to do is to create a release of the source distribution and/or egg: 
     12 
     13{{{ 
     14$ python setup.py sdist 
     15}}} 
     16 
     17This will create a version of the library tarred and gzipped under: 
     18 
     19{{{ 
     20dist/cows-1.6.0-r7585.tar.gz 
     21}}} 
     22 
     23You can create a python egg using: 
     24 
     25{{{ 
     26$ python setup.py bdist_egg 
     27}}} 
     28 
     29Which will create: 
     30 
     31{{{ 
     32dist/cows-1.6.0_r7585-py2.6.egg 
     33}}} 
     34 
     35 
     36If desired the files under {{{dist/}}} can be copied to the NDG repository at: 
     37 
     38 http://ndg.nerc.ac.uk/dist 
     39 
     40Which is served from {{{triton.badc.rl.ac.uk:/var/www/ndg_site/htdocs/dist/}}}. 
     41  
     42From there, tools such as [http://peak.telecommunity.com/DevCenter/EasyInstall Easy Install] will be able to find, download and build them.