Skip to content

Instantly share code, notes, and snippets.

PS C:\Users\jaraco\m\jaraco.office> py -3.4 .\build-exe.py
running py2exe
Traceback (most recent call last):
File ".\build-exe.py", line 21, in <module>
setup(**setup_params)
File "C:\Python34\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Python34\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Python34\lib\distutils\dist.py", line 974, in run_command
"""
Build script to create a doc-to-pdf convert server as a Windows executable.
"""
import os
setup_params = dict(
console=['server.py'],
script_args=('py2exe',),
@jaraco
jaraco / a.rb
Created December 31, 2017 18:38
PS C:\users\jaraco> cmd /c mklink /d bar foo
symbolic link created for bar <<===>> foo
PS C:\users\jaraco> mkdir foo
Directory: C:\users\jaraco
Mode LastWriteTime Length Name
---- ------------- ------ ----
@jaraco
jaraco / a.rb
Created December 31, 2017 18:38
PS C:\users\jaraco> rmdir foo
PS C:\users\jaraco> New-Item -Path bar -ItemType SymbolicLink -Value foo
New-Item : Cannot find path 'C:\users\jaraco\foo' because it does not exist.
At line:1 char:1
+ New-Item -Path bar -ItemType SymbolicLink -Value foo
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\users\jaraco\foo:String) [New-Item], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.NewItemCommand
@jaraco
jaraco / a.rb
Created December 31, 2017 18:36
PS C:\users\jaraco> New-Item -Path bar -ItemType SymbolicLink -Value foo
New-Item : Cannot find path 'C:\users\jaraco\foo' because it does not exist.
At line:1 char:1
+ New-Item -Path bar -ItemType SymbolicLink -Value foo
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\users\jaraco\foo:String) [New-Item], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.NewItemCommand
PS C:\users\jaraco> cmd /c mklink /d bar foo
symbolic link created for bar <<===>> foo
@jaraco
jaraco / a.rb
Created December 31, 2017 18:35
PS C:\users\jaraco> New-Item -Path bar -ItemType SymbolicLink -Value foo
Directory: C:\users\jaraco
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----l 12/31/2017 1:34 PM bar
@jaraco
jaraco / a.rb
Created December 31, 2017 18:32
PS C:\Windows\system32> cd ~
PS C:\Users\jaraco> mkdir foo
Directory: C:\Users\jaraco
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 12/31/2017 1:31 PM foo
import functools
import collections
import cherrypy
class SelectedMethod:
"""
Descriptor allowing a series of handler methods to satisfy
a variety of behaviors based on the request method.
@jaraco
jaraco / Dockerfile
Last active December 7, 2017 15:11
Dockerfile reproducer for pypa/setuptools#1229
FROM ubuntu:xenial
# general environment for docker
ENV DEBIAN_FRONTEND=noninteractive \
FORCE_UNSAFE_CONFIGURE=1
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
bzip2 \
build-essential \
@jaraco
jaraco / a.rb
Created December 5, 2017 16:47
$ cat > setup.py
__import__('setuptools').setup(name='foo', version='1.0', packages=__import__('setuptools').find_packages())
$ python setup.py sdist
running sdist
running egg_info
writing foo.egg-info/PKG-INFO
writing dependency_links to foo.egg-info/dependency_links.txt
writing top-level names to foo.egg-info/top_level.txt
reading manifest file 'foo.egg-info/SOURCES.txt'
writing manifest file 'foo.egg-info/SOURCES.txt'