scylladb / scylla-cqlsh

A fork of the cqlsh code
Apache License 2.0
16 stars 32 forks source link

import packaging scripts #4

Closed syuu1228 closed 1 year ago

syuu1228 commented 2 years ago

Importing packaging scripts both for relocatable package and .rpm/.deb, just like our existing packages. scylla-cqlsh will run on relocatable python3, unlike existing older cqlsh which runs on distro provided python2.

syuu1228 commented 2 years ago

Building reloctable, rpm, deb works:

[syuu@monster scylla-cqlsh]$ ls build/redhat/RPMS/x86_64/
scylla-cqlsh-666.development-20221028.5c62c72.x86_64.rpm
[syuu@monster scylla-cqlsh]$ ls build/debian/
scylla-cqlsh-package
scylla-cqlsh_666.development-20221028.5c62c72-1.diff.gz
scylla-cqlsh_666.development-20221028.5c62c72-1.dsc
scylla-cqlsh_666.development-20221028.5c62c72-1_amd64.build
scylla-cqlsh_666.development-20221028.5c62c72-1_amd64.buildinfo
scylla-cqlsh_666.development-20221028.5c62c72-1_amd64.changes
scylla-cqlsh_666.development-20221028.5c62c72-1_amd64.deb
scylla-cqlsh_666.development-20221028.5c62c72.orig.tar.gz
[syuu@monster scylla-cqlsh]$ ls build/
SCYLLA-PRODUCT-FILE
SCYLLA-PYTHON3-PIP-SYMLINKS-FILE
SCYLLA-RELEASE-FILE
SCYLLA-RELOCATABLE-FILE
SCYLLA-VERSION-FILE
debian
redhat
scylla-cqlsh-666.development-20221028.5c62c72.x86_64.tar.gz

able to run in Ubuntu 20.04 with scylla-python3:

vagrant@vagrant:~$ dpkg -l|grep scylla
ii  scylla-conf                          5.1.dev-0.20221027.777efa0537df-1  amd64        Scylla database main configuration file
ii  scylla-cqlsh                         666.development-20221028.5c62c72-1 amd64        A standalone python3 interpreter that can be moved around different Linux machines
ii  scylla-jmx                           5.1.dev-0.20221027.777efa0537df-1  all          Scylla JMX server binaries
ii  scylla-kernel-conf                   5.1.dev-0.20221027.777efa0537df-1  amd64        Scylla kernel tuning configuration
ii  scylla-node-exporter                 5.1.dev-0.20221027.777efa0537df-1  amd64        Prometheus exporter for machine metrics
ii  scylla-python3                       5.1.dev-0.20221027.777efa0537df-1  amd64        A standalone python3 interpreter that can be moved around different Linux machines
ii  scylla-server                        5.1.dev-0.20221027.777efa0537df-1  amd64        Scylla database server binaries
vagrant@vagrant:~$ dpkg -L scylla-cqlsh
/.
/opt
/opt/scylladb
/opt/scylladb/python3
/opt/scylladb/python3/bin
/opt/scylladb/python3/bin/cqlsh
/opt/scylladb/python3/bin/libexec
/opt/scylladb/python3/bin/libexec/cqlsh
/opt/scylladb/python3/lib64
/opt/scylladb/python3/lib64/python3.9
/opt/scylladb/python3/lib64/python3.9/site-packages
/opt/scylladb/python3/lib64/python3.9/site-packages/copyutil.cpython-39-x86_64-linux-gnu.so
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlsh
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlsh/__init__.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlsh/__main__.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlsh/cqlsh.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlshlib
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlshlib/__init__.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlshlib/_version.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlshlib/authproviderhandling.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlshlib/copyutil.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlshlib/cql3handling.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlshlib/cqlhandling.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlshlib/cqlshhandling.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlshlib/displaying.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlshlib/formatting.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlshlib/helptopics.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlshlib/pylexotron.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlshlib/saferscanner.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlshlib/sslhandling.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlshlib/tracing.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlshlib/util.py
/opt/scylladb/python3/lib64/python3.9/site-packages/cqlshlib/wcwidth.py
/opt/scylladb/python3/lib64/python3.9/site-packages/scylla_cqlsh-6.0.2.dist-info
/opt/scylladb/python3/lib64/python3.9/site-packages/scylla_cqlsh-6.0.2.dist-info/INSTALLER
/opt/scylladb/python3/lib64/python3.9/site-packages/scylla_cqlsh-6.0.2.dist-info/METADATA
/opt/scylladb/python3/lib64/python3.9/site-packages/scylla_cqlsh-6.0.2.dist-info/RECORD
/opt/scylladb/python3/lib64/python3.9/site-packages/scylla_cqlsh-6.0.2.dist-info/REQUESTED
/opt/scylladb/python3/lib64/python3.9/site-packages/scylla_cqlsh-6.0.2.dist-info/WHEEL
/opt/scylladb/python3/lib64/python3.9/site-packages/scylla_cqlsh-6.0.2.dist-info/direct_url.json
/opt/scylladb/python3/lib64/python3.9/site-packages/scylla_cqlsh-6.0.2.dist-info/entry_points.txt
/opt/scylladb/python3/lib64/python3.9/site-packages/scylla_cqlsh-6.0.2.dist-info/top_level.txt
/usr
/usr/bin
/usr/share
/usr/share/doc
/usr/share/doc/scylla-cqlsh
/usr/share/doc/scylla-cqlsh/changelog.Debian.gz
/usr/share/doc/scylla-cqlsh/copyright
/usr/bin/cqlsh
vagrant@vagrant:~$ /opt/scylladb/python3/bin/cqlsh
Connected to  at 127.0.0.1:9042
[cqlsh 6.0.2 | Cassandra 3.0.8 | CQL spec 3.3.1 | Native protocol v4]
Use HELP for help.
cqlsh>
fruch commented 2 years ago

@syuu1228 how it's different from #3 ?

fruch commented 1 year ago

done in #3