Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

tasks moved to paved

  • Loading branch information...
commit 6c893a8a0705f4ca577b14a3e5704cb25a6d61a2 1 parent 4f485a0
ponty authored
Showing with 1 addition and 36 deletions.
  1. +1 −36 pavement.py
View
37 pavement.py
@@ -13,6 +13,7 @@
from paved.util import *
from paved.docs import *
from paved.pycheck import *
+ from paved.pkg import *
from sphinxcontrib import paverutils
ALL_TASKS_LOADED = True
except ImportError, e:
@@ -122,39 +123,3 @@ def pdf():
fpdf.copy(d)
- def install_test(installer):
- import virtualenv
- import tempfile
- import textwrap
- root = path(tempfile.mkdtemp(prefix=NAME + '_'))
- info( 'root='+ root)
- script = root / 'start_virtualenv'
-
- txt = """
- def after_install(options, home_dir):
- assert not os.system('{installer} {NAME}')
- """.format(
- NAME=NAME,
- installer=root / 'env' / 'bin' / installer,
- )
-
- script_text = virtualenv.create_bootstrap_script(textwrap.dedent(txt))
- script.write_text(script_text)
- script.chmod(0755)
- sh('./start_virtualenv env --no-site-packages', cwd=root)
-
- @task
- def pypi_pip():
- install_test('pip install')
-
- @task
- def pypi_easy_install():
- install_test('easy_install')
-
- @task
- @needs(
- 'pypi_easy_install',
- 'pypi_pip',
- )
- def pypi():
- pass

0 comments on commit 6c893a8

Please sign in to comment.
Something went wrong with that request. Please try again.