Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos.buildout
Commits
ea1b8f3d
Commit
ea1b8f3d
authored
May 12, 2007
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to use newer testing API to reduce clutter.
parent
25479747
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
src/zc/buildout/runsetup.txt
src/zc/buildout/runsetup.txt
+6
-10
No files found.
src/zc/buildout/runsetup.txt
View file @
ea1b8f3d
...
...
@@ -16,10 +16,10 @@ that setuptools is imported means that you can use setuptools-based
commands, like bdist_egg even with packages that don't use setuptools.
To illustrate this, we'll create a package in a sample buildout:
>>> mkdir(
sample_buildout,
'hello')
>>> write(
sample_buildout,
'hello', 'hello.py', 'print "Hello World!"')
>>> write(
sample_buildout,
'hello', 'README', 'This is hello')
>>> write(
sample_buildout,
'hello', 'setup.py',
>>> mkdir('hello')
>>> write('hello', 'hello.py', 'print "Hello World!"')
>>> write('hello', 'README', 'This is hello')
>>> write('hello', 'setup.py',
... """
... from distutils.core import setup
... setup(name="hello",
...
...
@@ -32,15 +32,11 @@ To illustrate this, we'll create a package in a sample buildout:
We can use the buildout command to generate the hello egg:
>>> cd(sample_buildout)
>>> import os
>>> print system(os.path.join('bin', 'buildout')
... +' setup hello -q bdist_egg'),
>>> print system(buildout +' setup hello -q bdist_egg'),
buildout: Running setup script hello/setup.py
zip_safe flag not set; analyzing archive contents...
The hello directory now has a hello egg in it's dist directory:
>>> ls(
sample_buildout,
'hello', 'dist')
>>> ls('hello', 'dist')
- hello-1.0-py2.4.egg
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment