GithubHelp home page GithubHelp logo

syseggrecipe's People

Contributors

benwah avatar puckch avatar reinout avatar rvanlaar avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pombredanne

syseggrecipe's Issues

Can not create symlink in windows

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

Error on removing a symlinked directory in windows

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

Eerst gaat buildout goed. Daarna draai ik het nog een keer, en krijg ik foutmeldingen van sysegg.

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

Question from my own ignorance

What is the difference between using this recipe and just setting newest = false (or executing buildout with the -N flag) on buildout.cfg?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.