Skip to content

remove anaconda from build #186

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions cicd/install-tk.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,15 +247,17 @@ def get_python_versions(platform):
be used.

'''
cmd = ['conda', 'search', '-q', '--json', '--subdir', platform, 'defaults::pandas']
out = subprocess.check_output(cmd)

versions = set()
for item in json.loads(out)['pandas']:
pyver = [x for x in item['depends'] if x.startswith('python')][0]
pyver = re.findall(r'(\d+\.\d+)(?:\.\d+)?', pyver)[0]
versions.add(pyver)

versions.add('2.7')
versions.add('3.4')
versions.add('3.6')
versions.add('3.7')
versions.add('3.8')
versions.add('3.9')
versions.add('3.10')
versions.add('3.11')
versions.add('3.12')
return versions


Expand Down
17 changes: 2 additions & 15 deletions doc/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Installation
The SWAT package is installed using the ``pip`` command. The requirements
for using the binary protocol of CAS (recommended) are as follows.

* **64-bit** Python 2.7 or 3.5+ on Linux or Windows
* **64-bit** Python 3.7 - 3.11 on Linux or Windows

See additional shared library notes below.

Expand All @@ -26,11 +26,6 @@ For more information, see :ref:`Binary vs. REST <binaryvsrest>`.
Note that this package is merely a client to a CAS server. It has no utility unless
you have a licensed CAS server to connect to.

If you do not already have a modern Python installation, it is highly recommended
that you install the `Anaconda Python distribution <https://www.continuum.io/downloads>`_
from Continuum Analytics. This distribution includes dozens of commonly used Python
packages, and can even be installed without administrator privileges.

If you do not have ``pip`` installed, you can use ``easy_install pip`` to add
it to your current Python installation.

Expand All @@ -53,7 +48,7 @@ Python Dependencies

The SWAT package uses many features of the Pandas Python package and other
dependencies of Pandas. If you do not already have version 0.16 or greater
of Pandas installed, ``pip`` or ``conda`` will install or update it for you when you
of Pandas installed, ``pip`` will install or update it for you when you
install SWAT.

If you are using ``pip`` version 23.1 or later to install from a tar.gz file, the python
Expand All @@ -68,14 +63,6 @@ The latest release of SWAT can be installed from PyPI using ``pip`` as follows:
pip install swat


Conda
-----

If you use an Anaconda distribution of Python, you can use ``conda`` to install SWAT:

conda install -c sas-institute swat


Github
------

Expand Down
Loading