Skip to content

Commit e1d3a6d

Browse files
author
Georgi Baychev
committed
Additional refinement
- add aditional information about cmd.exe - use $env:Userprofile where appropriate - add --use-no-pep517 to the windows instruction - add some syntax highlight Relevant issue pandas-dev#29113
1 parent 39f6fa7 commit e1d3a6d

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

doc/source/development/contributing.rst

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ You'll need to have at least python3.5 installed on your system.
240240

241241
**Unix**/**Mac OS**
242242

243-
.. code-block:: none
243+
.. code-block:: bash
244244
245245
# Create a virtual environment
246246
# Use an ENV_DIR of your choice. We'll use ~/virtualenvs/pandas-dev
@@ -260,25 +260,30 @@ You'll need to have at least python3.5 installed on your system.
260260
**Windows**
261261

262262
Below is a brief overview on how to set-up a virtual environment with Powershell
263-
under Windows. For details please refer to the \
263+
under Windows. For details please refer to the
264264
`official virtualenv user guide <https://virtualenv.pypa.io/en/stable/userguide/#activate-script>`__
265265

266-
.. code-block:: none
266+
.. code-block:: powershell
267267
268268
# Create a virtual environment
269-
# Use an ENV_DIR of your choice. We'll use ~\virtualenvs\pandas-dev
269+
# Use an ENV_DIR of your choice. We'll use ~\virtualenvs\pandas-dev where
270+
# '~' is the folder pointed to by either $env:USERPROFILE (Powershell) or
271+
# %USERPROFILE% (cmd.exe) environment variable
270272
# Any parent directories should already exist
271-
python -m venv ~\virtualenvs\pandas-dev
273+
274+
# If you are using cmd.exe, run instead: python -m venv $env:USERPROFILE\virtualenvs\pandas-dev
275+
python -m venv $env:USERPROFILE\virtualenvs\pandas-dev
272276
273277
# Activate the virtualenv
274-
~\virtualenvs\pandas-dev\Scripts\Activate.ps1
278+
# If you are using cmd.exe, run instead: %USERPROFILE%\virtualenvs\pandas-dev\Scripts\activate.bat
279+
~\virtualenvs\pandas-dev\Scripts\Activate.ps1
275280
276281
# Install the build dependencies
277282
python -m pip install -r requirements-dev.txt
278283
279284
# Build and install pandas
280285
python setup.py build_ext --inplace -j 4
281-
python -m pip install -e . --no-build-isolation
286+
python -m pip install -e . --no-build-isolation --no-use-pep517
282287
283288
Creating a branch
284289
-----------------

0 commit comments

Comments
 (0)