|
6 | 6 | Python distutils data provisions module. |
7 | 7 |
|
8 | 8 | For sub-packagers, the `prefixed_packages` and `prefixed_extensions` functions |
9 | | -should be of particular interest. It is not recommended that sub-packagers |
10 | | -include the `scripts` keyword from py-postgresql in their setup() call. |
11 | | -If the distribution including ``py-postgresql`` uses the standard layout, |
12 | | -chances are that `prefixed_extensions` and `prefixed_packages` will supply the |
13 | | -appropriate information by default as they use `default_prefix` which is derived |
14 | | -from the module's `__package__`. |
| 9 | +should be of particular interest. If the distribution including ``py-postgresql`` |
| 10 | +uses the standard layout, chances are that `prefixed_extensions` and |
| 11 | +`prefixed_packages` will supply the appropriate information by default as they |
| 12 | +use `default_prefix` which is derived from the module's `__package__`. |
15 | 13 | """ |
16 | 14 | import sys |
17 | 15 | import os |
|
55 | 53 |
|
56 | 54 | Once installed, try out the ``pg_python`` console script:: |
57 | 55 |
|
58 | | - $ pg_python -h localhost -p port -U theuser -d database_name |
| 56 | + $ python3 -m postgresql.bin.pg_python -h localhost -p port -U theuser -d database_name |
59 | 57 |
|
60 | 58 | If a successful connection is made to the remote host, it will provide a Python |
61 | 59 | console with the database connection bound to the `db` name. |
|
111 | 109 | 'documentation' : ['*.txt'] |
112 | 110 | } |
113 | 111 |
|
114 | | -scripts = [ |
115 | | - 'postgresql/bin/pg_dotconf', |
116 | | - 'postgresql/bin/pg_python', |
117 | | -] |
118 | | - |
119 | 112 | try: |
120 | 113 | # :) |
121 | 114 | if __package__ is not None: |
@@ -183,7 +176,6 @@ def standard_setup_keywords(build_extensions = True, prefix = default_prefix): |
183 | 176 | 'classifiers' : CLASSIFIERS, |
184 | 177 | 'packages' : list(prefixed_packages(prefix = prefix)), |
185 | 178 | 'package_data' : dict(prefixed_package_data(prefix = prefix)), |
186 | | - 'scripts' : scripts, |
187 | 179 | } |
188 | 180 | if build_extensions: |
189 | 181 | d['ext_modules'] = list(prefixed_extensions(prefix = prefix)) |
|
0 commit comments