reinout / syseggrecipe Goto Github PK
View Code? Open in Web Editor NEWnens-syseggrecipe allows the reuse of system eggs in buildout installs
License: MIT License
nens-syseggrecipe allows the reuse of system eggs in buildout installs
License: MIT License
import os
__CSL = None
def symlink(source, link_name):
'''symlink(source, link_name)
Creates a symbolic link pointing to source named link_name'''
global __CSL
if __CSL is None:
import ctypes
csl = ctypes.windll.kernel32.CreateSymbolicLinkW
csl.argtypes = (ctypes.c_wchar_p, ctypes.c_wchar_p, ctypes.c_uint32)
csl.restype = ctypes.c_ubyte
__CSL = csl
flags = 0
if source is not None and os.path.isdir(source):
flags = 1
if __CSL(link_name, source, flags) == 0:
raise ctypes.WinError()
os.symlink = symlink
This error occurs when the symlink is a dir-link
`self.add_dev_link_to_egg(egg) File "e:\flooding\flooding\eggs\syseggrecipe-1.2 py2.7.egg\syseggrecipe\recipe.py", line 82, in add_dev_link_to_egg
os.remove(link_filepath)
WindowsError: [Error 5] Access is denied: 'E:\\flooding\\flooding\\develop-eggs\\matplotlib-1.3.1-py2.7.egg-info'
To remove the symlink (dir-link) in windows:
import os, ctypes
def IsSymlink(path):
FILE_ATTRIBUTE_REPARSE_POINT = 0x0400
return os.path.isdir(path) and (ctypes.windll.kernel32.GetFileAttributesW(unicode(path)) & FILE_ATTRIBUTE_REPARSE_POINT):
http://stackoverflow.com/questions/6996603/how-do-i-delete-a-file-or-folder-in-python
Updating sysegg.
sysegg: Using sysegg /usr/lib/python2.7/dist-packages/numpy-1.6.1.egg-info for numpy
sysegg: Using sysegg /usr/lib/python2.7/dist-packages/PIL/PIL-1.1.7.egg-info for PIL
While:
Updating sysegg.
An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/home/remcogerlich/.buildout/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py", line 1683, in main
getattr(buildout, command)(args)
File "/home/remcogerlich/.buildout/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py", line 525, in install
installed_files = self[part]._call(update)
File "/home/remcogerlich/.buildout/eggs/zc.buildout-1.4.4-py2.7.egg/zc/buildout/buildout.py", line 1227, in _call
return f()
File "/home/remcogerlich/.buildout/eggs/syseggrecipe-1.0.1-py2.7.egg/syseggrecipe/recipe.py", line 24, in install
self.add_dev_link_to_egg(egg)
File "/home/remcogerlich/.buildout/eggs/syseggrecipe-1.0.1-py2.7.egg/syseggrecipe/recipe.py", line 77, in add_dev_link_to_egg
os.symlink(egginfo_filepath, link_filepath)
OSError: [Errno 17] File exists
What is the difference between using this recipe and just setting newest = false
(or executing buildout with the -N flag) on buildout.cfg
?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.