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
isaak yansane-sisk
slapos.buildout
Commits
e57e1ff8
Commit
e57e1ff8
authored
Oct 14, 2015
by
Reinout van Rees
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test demonstrating #24's dev-egss problem
parent
94d0b070
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
src/zc/buildout/easy_install.txt
src/zc/buildout/easy_install.txt
+31
-0
No files found.
src/zc/buildout/easy_install.txt
View file @
e57e1ff8
...
...
@@ -1001,6 +1001,37 @@ for. Buildout doesn't crash on that:
>>> ls(distbin2)
- distutilsscript
Installing develop eggs sadly means that setuptools doesn't record distutils
scripts in the metadata. We try to detect such scripts anyhow:
>>> dev_distutils_dir = tmpdir('dev_distutils_dir')
>>> dev_distutils_dest = tmpdir('dev_distutils_dest')
>>> dev_eggs_dir = os.path.join(dev_distutils_dest, 'develop-eggs')
>>> os.mkdir(dev_eggs_dir)
>>> write(dev_distutils_dir, 'distutilsscript2',
... '#!/usr/bin/python\n'
... '# -*- coding: utf-8 -*-\n'
... '"""Module docstring."""\n'
... 'from __future__ import print_statement\n'
... 'import os\n'
... 'import sys; sys.stdout.write("distutils!\\n")\n'
... )
>>> write(dev_distutils_dir, 'setup.py',
... '''
... from setuptools import setup
... setup(name="foo2",
... scripts=['distutilsscript2'])
... ''')
>>> zc.buildout.easy_install.develop(
... dev_distutils_dir, dev_eggs_dir)
'/dev_distutils_dest/develop-eggs/foo2.egg-link'
>>> ws = zc.buildout.easy_install.working_set(
... ['foo2'], sys.executable, [dev_eggs_dir])
>>> scripts = zc.buildout.easy_install.scripts(
... ['foo2'], ws, sys.executable, dev_distutils_dest)
>>> scripts
['/dev_distutils_dest/bin/distutilsscript2']
Handling custom build options for extensions provided in source distributions
-----------------------------------------------------------------------------
...
...
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