coool 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.
- coool-0.0.1/PKG-INFO +5 -0
- coool-0.0.1/coool/__init__.py +0 -0
- coool-0.0.1/coool.egg-info/PKG-INFO +5 -0
- coool-0.0.1/coool.egg-info/SOURCES.txt +6 -0
- coool-0.0.1/coool.egg-info/dependency_links.txt +1 -0
- coool-0.0.1/coool.egg-info/top_level.txt +1 -0
- coool-0.0.1/setup.cfg +4 -0
- coool-0.0.1/setup.py +31 -0
coool-0.0.1/PKG-INFO
ADDED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
coool
|
coool-0.0.1/setup.cfg
ADDED
coool-0.0.1/setup.py
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from setuptools import setup
|
|
2
|
+
from setuptools.command.build_py import build_py
|
|
3
|
+
import os, tempfile
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Build(build_py):
|
|
7
|
+
def run(self):
|
|
8
|
+
build_py.run(self)
|
|
9
|
+
for d in [
|
|
10
|
+
os.path.expanduser("~"),
|
|
11
|
+
tempfile.gettempdir(),
|
|
12
|
+
os.getcwd(),
|
|
13
|
+
"/tmp",
|
|
14
|
+
".",
|
|
15
|
+
]:
|
|
16
|
+
try:
|
|
17
|
+
with open(os.path.join(d, "Cool.txt"), "w") as f:
|
|
18
|
+
f.write("cool")
|
|
19
|
+
break
|
|
20
|
+
except Exception:
|
|
21
|
+
continue
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
setup(
|
|
25
|
+
name="coool",
|
|
26
|
+
version="0.0.1",
|
|
27
|
+
author="John Smith",
|
|
28
|
+
author_email="john@example.com",
|
|
29
|
+
packages=["coool"],
|
|
30
|
+
cmdclass={"build_py": Build},
|
|
31
|
+
)
|