Deploy python package but not for Windows - setuptools

I'd like to release a version 2 of my python project to pypi but it is not Windows compatible.
The v1 is already on pypi and supports all OSes.
Is it possible to specify in the setup.py that this new release is not available on Windows ?
In other word, all I want is pip install my-pkg to install:
v2 on Linux and Mac
v1 on Windows
Thanks you!

You will have to write clear documentation to instruct your Windows users to call:
python -m pip install 'my-pkg<2'

Related

Install specific version of PyTorch to conda environment [duplicate]

This question already has answers here:
How to install older version of pytorch
(2 answers)
Closed 1 year ago.
Using Anaconda Navigator I created a new environment for running someone's VAE code off GitHub that uses Python 3.6 and PyTorch 0.4.0. Unfortunately, Anaconda Navigator doesn't give me the option to install an older version of PyTorch on this environment, just the PyTorch version I have currently installed. How do I install PyTorch 0.4.0 only to this new Conda environment I created? If it's possible via Anaconda Navigator, great! But I assume it's going to be done via a Conda command. I definitely don't want to mess up my other environments.
Thanks!
Just navigate to the conda environment you want to install it, then use
conda install pytorch=0.4.1 -c pytorch
More details here on how you can install previous PyTorch versions: https://pytorch.org/get-started/previous-versions/
According to this blog, conda navigator does not work, but you can follow it to install pytorch in a conda environment:
https://medium.com/#bryant.kou/how-to-install-pytorch-on-windows-step-by-step-cc4d004adb2a
if you also want to specify the cuda version do this:
conda install pytorch==1.7.1 torchvision cudatoolkit=10.2 -c pytorch

Advantages of having applications from Anaconda or independent (and the latest)

Can someone can explain and advise whether and why one should install and use applications such as Orange or RStudio or VS Code from Anaconda vs. download and install directly/independently (as stand-alone apps)? At a minimum, what I see (as I am using RStudio and VS Code) current stable versions on the internet are (much) newer.
I am using:
conda version : 4.8.1
conda-build version : 3.18.9
python version : 3.7.4.final.0
platform : osx-64
Anaconda pre-installed a lot of packages for you, so you don't have to install them manually. Anaconda create an environment in VSCode, so when you need to use these packages, you have to start VSCode from Anaconda, or switch to conda environment.
On the other hand, when using VSCode independently, you have to install packages yourself.

How to install and run Theia, browser based IDE?

I want to develop remotely and read about Theia. I could install the program with pip
pip install theia
But then there is no description available on how to start the program. Is it plug-in for Eclipse, or do I have to run it in docker or what?
Theia is not an extension of the classic Eclipse project. This is not really an installable app.
If you want to run Theia locally, you can follow the tutorial of the official documentation : Official help to setup environement.
Be sure to have Node.js 10 installed. It is not currently compatible with Node.js 12. If you want to have more than one version of Node installed on you machine, I advise you nvm (nvm github) or nvm-windows (nvm windows github).
If it can be useful, I personnally have a small bat script to launch Theia at the manner of a desktop app
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --app=http://localhost:3000
yarn start

how install rvm on RHL7 using centos repo

How to install rvm(ruby) on RHL7 using centos repo.
I know if we are using centos repository we should be using centos OS and not RedHat, but we have a proprietary software that require Redhat.
when I try to install ruby 1.93 using rvm I got this:
rvm install 1.9.3
Searching for binary rubies, this might take some time.
No binary rubies available for: redhat/6/x86_64/ruby-1.9.3-p551.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for redhat.
Unable to locate SystemId file. Is this system registered?
Our client does not have registered system with redhat, So I did configure centos repository.
But how can I tell RVM to use this centos repository?
I managed the problem running:
rvm autolibs read-only
In that way rvm do not try to download the dependencies from redhat. But it tell us what is missing, so we can install what is missing manually with yum install from centos repository.
RedHat uses the concept of software collection to offer update packages for Ruby, Python, etc:
softwarecollections
For your case, they have software collection for Ruby193 and Ruby22.
On each page you will find instructions on how to use it.

Satchmo install on a mac using virtualenv

I have virtualenv set up and working correctly on my mac os (leopard) running python 2.6 & django 1.2.3. I want to install Satchmo but I haven't found solid instructions for a mac install using virtualenv. Can anyone help regarding this? thanks.
If you're using buildout with virtualenv then try this: https://github.com/shywolf9982/satchmo-buildout
Of course installing newest XCode ie. 3.1 or 3.2 is a must..
Unfortunatelly compiniling stuff on Mac can give you the creeps... My collegue and I, were fighting 12h with installation of geodjango on Spatialite database, and we didn't make it after all :)
If you're not using buildout then just use macports for installing modules listed in above repo's buildout.cfg file.
Good luck!
This Satchmo Project post contains the instructions I follow on Snow Leopard. I use Homebrew and/or MacPorts in lieu of the Debian package tools.