Skip to content

Commit 7cdc505

Browse files
committed
Darling build of python_modules-58.0.1
1 parent bfd4d83 commit 7cdc505

File tree

9,306 files changed

+2884533
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

9,306 files changed

+2884533
-0
lines changed

CMakeLists.txt

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
project(python_modules)
2+
3+
include(CMakeParseArguments)
4+
include(darling_bundle)
5+
6+
function(build_pybundle name)
7+
cmake_parse_arguments(BUNDLE "FAT" "PYTHON_VERSION;DESTINATION" "SOURCES" ${ARGN})
8+
9+
# Apple has removed Python 2.6 support, so disable this codepath
10+
#
11+
# For Darling, although we do want to keep compatability with older software,
12+
# Python 2.6 (and really, Python 2 in general) has been deprecated for so long
13+
# that it really shouldn't be included anywhere anymore
14+
#
15+
# Anyways, if this causes a problem later down the line, import the last Python 2.6 version
16+
# Apple supported from their open source repo and restore some of the plumbing throughout the various
17+
# Python-related CMakeLists (in the core Python repo and in these packages too) to make it work
18+
19+
#if (BUNDLE_PYTHON_VERSION STREQUAL "2.6")
20+
# set(suffix "_py26")
21+
# include_directories(
22+
# ${CMAKE_SOURCE_DIR}/src/external/python/2.6/Python-2.6.9/Include
23+
# ${CMAKE_SOURCE_DIR}/src/external/python/2.6/Python-2.6.9
24+
# )
25+
#elseif (BUNDLE_PYTHON_VERSION STREQUAL "2.7")
26+
if (BUNDLE_PYTHON_VERSION STREQUAL "2.7")
27+
set(suffix "_py27")
28+
include_directories(
29+
${CMAKE_SOURCE_DIR}/src/external/python/2.7/Python-2.7.16/Include
30+
${CMAKE_SOURCE_DIR}/src/external/python/2.7/Python-2.7.16
31+
)
32+
else()
33+
message(FATAL_ERROR "Unknown Python version set: ${BUNDLE_PYTHON_VERSION}")
34+
endif()
35+
36+
set(full_name "${name}_${suffix}")
37+
add_darling_bundle("${full_name}" "" ${BUNDLE_SOURCES})
38+
39+
if (BUNDLE_FAT)
40+
make_fat("${full_name}")
41+
endif (BUNDLE_FAT)
42+
43+
set_property(TARGET "${full_name}" APPEND_STRING PROPERTY LINK_FLAGS " -Wl,-flat_namespace -Wl,-undefined,suppress ")
44+
45+
target_link_libraries("${full_name}" system)
46+
install(TARGETS "${full_name}" DESTINATION "${BUNDLE_DESTINATION}")
47+
install(CODE "execute_process(COMMAND mv ${full_name} ${name}.so WORKING_DIRECTORY ${BUNDLE_DESTINATION})")
48+
endfunction(build_pybundle)
49+
50+
function(easyinstall python_version package_name package_version)
51+
set(local_file "${CMAKE_CURRENT_BINARY_DIR}/${package_name}-${package_version}-${python_version}")
52+
53+
set(EXEPATH "/System/Library/Frameworks/Python.framework/Versions/${python_version}/bin/python${python_version}")
54+
set(PYTHON_VERSION ${python_version})
55+
set(PACKAGE_NAME ${package_name})
56+
set(PACKAGE_VERSION ${package_version})
57+
58+
configure_file(${CMAKE_SOURCE_DIR}/src/external/python_modules/easyinstall.py.in "${local_file}")
59+
install(PROGRAMS "${local_file}" DESTINATION libexec/darling/usr/bin RENAME "${package_name}-${python_version}")
60+
endfunction(easyinstall)
61+
62+
add_subdirectory(Modules/six-1.12.0/six-1.12.0)
63+
add_subdirectory(Modules/macholib-1.5.1/macholib-1.5.1)
64+
add_subdirectory(Modules/xattr-0.6.4/xattr-0.6.4)
65+
add_subdirectory(Modules/setuptools-41.0.1/setuptools-41.0.1)
66+
67+
#install(FILES Extras-2.6.pth DESTINATION libexec/darling/Library/Python/2.6/site-packages RENAME Extras.pth)
68+
install(FILES Extras-2.7.pth DESTINATION libexec/darling/Library/Python/2.7/site-packages RENAME Extras.pth)
69+

Extras-2.7.pth

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
2+
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC
-470 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
include ReadMe.txt
2+
include *.txt MANIFEST.in *.py
3+
graft doc
4+
graft doc/_static
5+
graft doc/_templates
6+
graft altgraph_tests
7+
global-exclude .DS_Store
8+
global-exclude *.pyc
9+
global-exclude *.so
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
1+
Metadata-Version: 1.1
2+
Name: altgraph
3+
Version: 0.10.2
4+
Summary: Python graph (network) package
5+
Home-page: http://packages.python.org/altgraph
6+
Author: Ronald Oussoren
7+
Author-email: [email protected]
8+
License: MIT
9+
Download-URL: http://pypi.python.org/pypi/altgraph
10+
Description: altgraph is a fork of graphlib: a graph (network) package for constructing
11+
graphs, BFS and DFS traversals, topological sort, shortest paths, etc. with
12+
graphviz output.
13+
14+
altgraph includes some additional usage of Python 2.6+ features and
15+
enhancements related to modulegraph and macholib.
16+
17+
18+
Release history
19+
===============
20+
21+
0.10.2
22+
------
23+
24+
- There where no classifiers in the package metadata due to a bug
25+
in setup.py
26+
27+
0.10.1
28+
------
29+
30+
This is a bugfix release
31+
32+
Bug fixes:
33+
34+
- Issue #3: The source archive contains a README.txt
35+
while the setup file refers to ReadMe.txt.
36+
37+
This is caused by a misfeature in distutils, as a
38+
workaround I've renamed ReadMe.txt to README.txt
39+
in the source tree and setup file.
40+
41+
42+
0.10
43+
-----
44+
45+
This is a minor feature release
46+
47+
Features:
48+
49+
- Do not use "2to3" to support Python 3.
50+
51+
As a side effect of this altgraph now supports
52+
Python 2.6 and later, and no longer supports
53+
earlier releases of Python.
54+
55+
- The order of attributes in the Dot output
56+
is now always alphabetical.
57+
58+
With this change the output will be consistent
59+
between runs and Python versions.
60+
61+
0.9
62+
---
63+
64+
This is a minor bugfix release
65+
66+
Features:
67+
68+
- Added ``altgraph.ObjectGraph.ObjectGraph.nodes``, a method
69+
yielding all nodes in an object graph.
70+
71+
Bugfixes:
72+
73+
- The 0.8 release didn't work with py2app when using
74+
python 3.x.
75+
76+
77+
0.8
78+
-----
79+
80+
This is a minor feature release. The major new feature
81+
is a extensive set of unittests, which explains almost
82+
all other changes in this release.
83+
84+
Bugfixes:
85+
86+
- Installing failed with Python 2.5 due to using a distutils
87+
class that isn't available in that version of Python
88+
(issue #1 on the issue tracker)
89+
90+
- ``altgraph.GraphStat.degree_dist`` now actually works
91+
92+
- ``altgraph.Graph.add_edge(a, b, create_nodes=False)`` will
93+
no longer create the edge when one of the nodes doesn't
94+
exist.
95+
96+
- ``altgraph.Graph.forw_topo_sort`` failed for some sparse graphs.
97+
98+
- ``altgraph.Graph.back_topo_sort`` was completely broken in
99+
previous releases.
100+
101+
- ``altgraph.Graph.forw_bfs_subgraph`` now actually works.
102+
103+
- ``altgraph.Graph.back_bfs_subgraph`` now actually works.
104+
105+
- ``altgraph.Graph.iterdfs`` now returns the correct result
106+
when the ``forward`` argument is ``False``.
107+
108+
- ``altgraph.Graph.iterdata`` now returns the correct result
109+
when the ``forward`` argument is ``False``.
110+
111+
112+
Features:
113+
114+
- The ``altgraph.Graph`` constructor now accepts an argument
115+
that contains 2- and 3-tuples instead of requireing that
116+
all items have the same size. The (optional) argument can now
117+
also be any iterator.
118+
119+
- ``altgraph.Graph.Graph.add_node`` has no effect when you
120+
add a hidden node.
121+
122+
- The private method ``altgraph.Graph._bfs`` is no longer
123+
present.
124+
125+
- The private method ``altgraph.Graph._dfs`` is no longer
126+
present.
127+
128+
- ``altgraph.ObjectGraph`` now has a ``__contains__`` methods,
129+
which means you can use the ``in`` operator to check if a
130+
node is part of a graph.
131+
132+
- ``altgraph.GraphUtil.generate_random_graph`` will raise
133+
``GraphError`` instead of looping forever when it is
134+
impossible to create the requested graph.
135+
136+
- ``altgraph.Dot.edge_style`` raises ``GraphError`` when
137+
one of the nodes is not present in the graph. The method
138+
silently added the tail in the past, but without ensuring
139+
a consistent graph state.
140+
141+
- ``altgraph.Dot.save_img`` now works when the mode is
142+
``"neato"``.
143+
144+
0.7.2
145+
-----
146+
147+
This is a minor bugfix release
148+
149+
Bugfixes:
150+
151+
- distutils didn't include the documentation subtree
152+
153+
0.7.1
154+
-----
155+
156+
This is a minor feature release
157+
158+
Features:
159+
160+
- Documentation is now generated using `sphinx <http://pypi.python.org/pypi/sphinx>`_
161+
and can be viewed at <http://packages.python.org/altgraph>.
162+
163+
- The repository has moved to bitbucket
164+
165+
- ``altgraph.GraphStat.avg_hops`` is no longer present, the function had no
166+
implementation and no specified behaviour.
167+
168+
- the module ``altgraph.compat`` is gone, which means altgraph will no
169+
longer work with Python 2.3.
170+
171+
172+
0.7.0
173+
-----
174+
175+
This is a minor feature release.
176+
177+
Features:
178+
179+
- Support for Python 3
180+
181+
- It is now possible to run tests using 'python setup.py test'
182+
183+
(The actual testsuite is still very minimal though)
184+
185+
Platform: any
186+
Classifier: Intended Audience :: Developers
187+
Classifier: License :: OSI Approved :: MIT License
188+
Classifier: Programming Language :: Python
189+
Classifier: Programming Language :: Python :: 2
190+
Classifier: Programming Language :: Python :: 3
191+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
192+
Classifier: Topic :: Scientific/Engineering :: Mathematics
193+
Classifier: Topic :: Scientific/Engineering :: Visualization
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
altgraph is a fork of graphlib: a graph (network) package for constructing
2+
graphs, BFS and DFS traversals, topological sort, shortest paths, etc. with
3+
graphviz output.
4+
5+
altgraph includes some additional usage of Python 2.6+ features and
6+
enhancements related to modulegraph and macholib.

0 commit comments

Comments
 (0)