Skip to content

Commit a279011

Browse files
author
James William Pye
committed
Remove inclusion of scripts.
1 parent 7756832 commit a279011

3 files changed

Lines changed: 5 additions & 21 deletions

File tree

postgresql/bin/pg_dotconf

Lines changed: 0 additions & 4 deletions
This file was deleted.

postgresql/bin/pg_python

Lines changed: 0 additions & 4 deletions
This file was deleted.

postgresql/release/distutils.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
Python distutils data provisions module.
77
88
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__`.
1513
"""
1614
import sys
1715
import os
@@ -55,7 +53,7 @@
5553
5654
Once installed, try out the ``pg_python`` console script::
5755
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
5957
6058
If a successful connection is made to the remote host, it will provide a Python
6159
console with the database connection bound to the `db` name.
@@ -111,11 +109,6 @@
111109
'documentation' : ['*.txt']
112110
}
113111

114-
scripts = [
115-
'postgresql/bin/pg_dotconf',
116-
'postgresql/bin/pg_python',
117-
]
118-
119112
try:
120113
# :)
121114
if __package__ is not None:
@@ -183,7 +176,6 @@ def standard_setup_keywords(build_extensions = True, prefix = default_prefix):
183176
'classifiers' : CLASSIFIERS,
184177
'packages' : list(prefixed_packages(prefix = prefix)),
185178
'package_data' : dict(prefixed_package_data(prefix = prefix)),
186-
'scripts' : scripts,
187179
}
188180
if build_extensions:
189181
d['ext_modules'] = list(prefixed_extensions(prefix = prefix))

0 commit comments

Comments
 (0)