Skip to content

Commit 3800b4b

Browse files
committed
Don't ship pam.py in the module
The comment at the top of this file says: "This is a legacy file, it is not used. Here for example." so it seems sensible to no longer ship it as part of the pam module itself. This moves it to an examples/ directory which will not be included in builds of the actual module, and updates the comment. Signed-off-by: Adam Williamson <[email protected]>
1 parent 1dcd670 commit 3800b4b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include README.md
22
include LICENSE
3+
graft examples

src/pam/pam.py renamed to examples/pam.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@
2222
'''
2323
PAM module for python
2424
25-
This is a legacy file, it is not used. Here for example.
25+
This is a legacy implementation of the real module, kept around as a usage
26+
example.
2627
2728
Provides an authenticate function that will allow the caller to authenticate
2829
a user against the Pluggable Authentication Modules (PAM) on the system.
2930
3031
Implemented using ctypes, so no compilation is necessary.
3132
'''
3233

33-
import __internals
34+
import pam.__internals
3435

3536
if __name__ == "__main__": # pragma: no cover
3637
import readline

0 commit comments

Comments
 (0)