Skip to content

Commit

Permalink
use dist_dir option for sdist command
Browse files Browse the repository at this point in the history
  • Loading branch information
dhellmann committed Apr 4, 2009
1 parent 66061c8 commit b93a2b7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions pavement.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@

),

packaging = Bunch(
outdir='~/Desktop',
sdist = Bunch(
dist_dir=os.path.expanduser('~/Desktop'),
),

)
Expand All @@ -101,12 +101,7 @@ def remake_directories(*dirnames):
def sdist():
"""Create a source distribution.
"""
# Move the output file to the desktop
dist_files = path('dist').glob('*.tar.gz')
dest_dir = path(options.packaging.outdir).expanduser()
for f in dist_files:
f.move(dest_dir)
return
pass

@task
def html():
Expand Down

0 comments on commit b93a2b7

Please sign in to comment.