Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

kerberos.so is not generated by setup.py #126

Open
jeliupurestorage opened this issue Dec 9, 2022 · 1 comment
Open

kerberos.so is not generated by setup.py #126

jeliupurestorage opened this issue Dec 9, 2022 · 1 comment

Comments

@jeliupurestorage
Copy link

When installing from source, kerberos.so is not generated by python setup.py install is ran. This was replicated with 0.3.18, .17, .11 and .0 zip files also latest on master branch.

Dockerfile of Ubuntu18 container I attempted this in:

FROM ubuntu:18.04
RUN apt-get -y update && apt-get -y install sudo net-tools curl unzip
RUN apt-get install -y --no-install-recommends python-dev build-essential python2.7 python3 python-pip py3c-dev python3-pip
RUN apt-get install -y python3-dev
RUN apt-get install -y --no-install-recommends libkrb5-dev
RUN pip3 install setuptools
RUN pip3 install pycryptodomex
RUN apt-get -y install silversearcher-ag git
RUN git clone https://github.com/emc-isilon/pike.git
WORKDIR pike
RUN python3 setup.py install
RUN ls; sleep 10
WORKDIR /pike/build/temp.linux-aarch64-3.6/pykerb
RUN ag -g kerberos.so; sleep 10
RUN ls; ls -l; sleep 10
WORKDIR /pike
RUN ag -g kerberos.so; sleep 10

@masenf
Copy link
Collaborator

masenf commented Dec 9, 2022

It appears to be working on current master for me. Using your Dockerfile

root@a33cde7e593d:~# python3
Python 3.6.9 (default, Nov 25 2022, 14:10:45)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pike.kerberos
>>> pike.kerberos
<module 'pike.kerberos' from '/usr/local/lib/python3.6/dist-packages/pike_smb2-0.0.0-py3.6-linux-x86_64.egg/pike/kerberos.cpython-36m-x86_64-linux-gnu.so'>
>>>
root@a33cde7e593d:~# ls -lah /pike/build/lib.linux-x86_64-3.6/pike/
total 620K
drwxr-xr-x 3 root root 4.0K Dec  9 01:33 .
drwxr-xr-x 3 root root 4.0K Dec  9 01:33 ..
-rw-r--r-- 1 root root 1.2K Dec  9 01:33 __init__.py
-rw-r--r-- 1 root root 3.2K Dec  9 01:33 auth.py
-rw-r--r-- 1 root root  24K Dec  9 01:33 core.py
-rw-r--r-- 1 root root  11K Dec  9 01:33 crypto.py
-rw-r--r-- 1 root root 2.9K Dec  9 01:33 digest.py
-rw-r--r-- 1 root root 1.9K Dec  9 01:33 exceptions.py
-rw-r--r-- 1 root root  18K Dec  9 01:33 io.py
-rwxr-xr-x 1 root root 141K Dec  9 01:33 kerberos.cpython-36m-x86_64-linux-gnu.so      <--------
-rw-r--r-- 1 root root  81K Dec  9 01:33 model.py
-rw-r--r-- 1 root root 2.3K Dec  9 01:33 netbios.py
-rw-r--r-- 1 root root  26K Dec  9 01:33 ntlm.py
-rw-r--r-- 1 root root  83K Dec  9 01:33 ntstatus.py
-rw-r--r-- 1 root root 3.0K Dec  9 01:33 nttime.py
-rw-r--r-- 1 root root  25K Dec  9 01:33 path.py
-rw-r--r-- 1 root root 4.3K Dec  9 01:33 pytest_support.py
-rw-r--r-- 1 root root 134K Dec  9 01:33 smb2.py
drwxr-xr-x 2 root root 4.0K Dec  9 01:33 test
-rw-r--r-- 1 root root  15K Dec  9 01:33 transport.py

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants