File: dist.vel

package info (click to toggle)
python-lamson 1.0pre11-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 3,508 kB
  • ctags: 1,036
  • sloc: python: 5,772; xml: 177; makefile: 19
file content (40 lines) | stat: -rw-r--r-- 968 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# requires that you have options:  setup, project, website, vesion, and sudo

depends (
        config ['dist.clean' 'dist.gen.setup'] 
        install ['dist.config']
        sdist ['dist.config']
        release ['dist.sdist']
)

targets (
        config 
            $ python setup.py config

        sdist [
            $ rm -f MANIFEST
            $ python setup.py sdist
        ]

        install [
           $ %(sudo)s python setup.py install
           $ %(sudo)s chown -R `whoami` build dist %(project)s.egg-info
        ]

        clean [
            $ %(sudo)s rm -rf build dist %(project)s.egg-info
            $ %(sudo)s rm -f `find . -name "*.pyc"`
        ]

        gen.setup 
            gen(input 'scripts/setup.py' output 'setup.py')

        cheese [
            needs ['dist.sdist']
            $ python setup.py register bdist_egg upload
        ]

        release [
            $ cp dist/%(project)s-%(version)s.tar.gz %(website)s
        ]
)