Skip to content

Commit 954b6ec

Browse files
committed
Initial Commit
1 parent b251ef8 commit 954b6ec

32 files changed

+8341
-1
lines changed

Makefile

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#!/usr/bin/make -f
2+
3+
INSTALL ?= install
4+
PREFIX ?= /usr/local
5+
VERSION = 3.7.2
6+
7+
clean:
8+
find . -name '*.py[co]' -delete
9+
find . -name __pycache__ -type d | xargs rm -rf
10+
rm -f .coverage
11+
12+
install:
13+
$(INSTALL) -m 755 -d $(DESTDIR)$(PREFIX)/bin \
14+
$(DESTDIR)$(PREFIX)/share/python3/runtime.d \
15+
$(DESTDIR)$(PREFIX)/share/man/man1 \
16+
$(DESTDIR)$(PREFIX)/share/applications
17+
$(INSTALL) -m 755 runtime.d/* $(DESTDIR)$(PREFIX)/share/python3/runtime.d/
18+
$(INSTALL) -m 755 -d $(DESTDIR)$(PREFIX)/share/python3/genpython $(DESTDIR)$(PREFIX)/bin
19+
$(INSTALL) -m 644 genpython/*.py $(DESTDIR)$(PREFIX)/share/python3/genpython/
20+
$(INSTALL) -m 755 py3compile $(DESTDIR)$(PREFIX)/bin/
21+
$(INSTALL) -m 644 py3compile.1 $(DESTDIR)$(PREFIX)/share/man/man1/py3compile.1
22+
sed -i -e 's/DEVELV/$(VERSION)/' $(DESTDIR)$(PREFIX)/bin/py3compile
23+
$(INSTALL) -m 755 py3clean $(DESTDIR)$(PREFIX)/bin/
24+
sed -i -e 's/DEVELV/$(VERSION)/' $(DESTDIR)$(PREFIX)/bin/py3clean
25+
$(INSTALL) -m 644 py3clean.1 $(DESTDIR)$(PREFIX)/share/man/man1/py3clean.1
26+
$(INSTALL) -m 644 idle.1 $(DESTDIR)$(PREFIX)/share/man/man1/idle.1
27+
$(INSTALL) -m 644 idle.desktop $(DESTDIR)$(PREFIX)/share/applications/idle.desktop
28+
$(INSTALL) -m 644 python3.desktop $(DESTDIR)$(PREFIX)/share/applications/python3.desktop
29+
$(INSTALL) -m 644 py3versions.1 $(DESTDIR)$(PREFIX)/share/man/man1/py3versions.1
30+
$(INSTALL) -m 755 py3versions.py $(DESTDIR)$(PREFIX)/bin/py3versions
31+
$(INSTALL) -m 755 py3versions.py $(DESTDIR)$(PREFIX)/bin/py3versions
32+
$(INSTALL) -m 644 python.mk $(DESTDIR)$(PREFIX)/share/python3/python.mk
33+
$(INSTALL) -m 644 genuine_defaults $(DESTDIR)$(PREFIX)/share/python3/genuine_defaults
34+
cp -pv valgrind-python.supp $(DESTDIR)$(PREFIX)/usr/lib/valgrind/python3.supp
35+
36+
# TESTS
37+
tests:
38+
nosetests3 --with-doctest --with-coverage
39+
40+
check_versions:
41+
@PYTHONPATH=. set -e; \
42+
DEFAULT=`python3 -c 'import genpython.version as v; print(v.vrepr(v.DEFAULT))'`;\
43+
SUPPORTED=`python3 -c 'import genpython.version as v; print(" ".join(sorted(v.vrepr(v.SUPPORTED))))'`;\
44+
GEN_DEFAULT=`sed -rn 's,^default-version = python([0.9.]*),\1,p' genuine/genuine_defaults`;\
45+
GEN_SUPPORTED=`sed -rn 's|^supported-versions = (.*)|\1|p' genuine/genuine_defaults | sed 's/python//g;s/,//g'`;\
46+
[ "$$DEFAULT" = "$$GEN_DEFAULT" ] || \
47+
(echo 'Please update DEFAULT in genpython/version.py' >/dev/stderr; false);\
48+
[ "$$SUPPORTED" = "$$GEN_SUPPORTED" ] || \
49+
(echo 'Please update SUPPORTED in genpython/version.py' >/dev/stderr; false)
50+
51+
.PHONY: clean tests test% check_versions

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# python3-defaults
1+
# python3-default
2+
3+
Extra files for **Python3** package.

faq/FAQ.ht

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Title: Python Frequently Asked Question Lists
2+
Content-type: text/x-rst
3+
4+
==========================================
5+
Python Frequently Asked Question Lists
6+
==========================================
7+
8+
* `General Python FAQ <faq/general.html>`_
9+
* `Programming FAQ <faq/programming.html>`_
10+
* `Library and Extension FAQ <faq/library.html>`_
11+
* `Extending/Embedding FAQ <faq/extending.html>`_
12+
* `Windows FAQ <faq/windows.html>`_
13+
* `GUI Programming FAQ <faq/gui.html>`_
14+
* `"Why is Python Installed on my Computer?" FAQ <faq/installed.html>`_
15+
16+
17+
This is a local copy of the online FAQ located at
18+
http://python.org/doc/faq.
19+
The copy was fetched and generated in Februar 2007.

0 commit comments

Comments
 (0)